From 58bd5644386ba593a7d53dbe3b7a09b72ecb3dd2 Mon Sep 17 00:00:00 2001 From: Ben Hymers Date: Mon, 14 Mar 2016 08:53:29 +0000 Subject: [PATCH] Initialise BuildContext::m_messages to null pointers Fixes warning reported by Coverity Scan --- RecastDemo/Source/SampleInterfaces.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RecastDemo/Source/SampleInterfaces.cpp b/RecastDemo/Source/SampleInterfaces.cpp index 9736f0a..44b306b 100644 --- a/RecastDemo/Source/SampleInterfaces.cpp +++ b/RecastDemo/Source/SampleInterfaces.cpp @@ -20,6 +20,8 @@ BuildContext::BuildContext() : m_messageCount(0), m_textPoolSize(0) { + memset(m_messages, 0, sizeof(char*) * MAX_MESSAGES); + resetTimers(); }