From 9d4e9c59de533ae28badb22da87cb553783dd133 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 11 Apr 2011 11:36:13 +0300 Subject: fixed warnings reported by cppcheck --- src/debug.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/debug.cpp') diff --git a/src/debug.cpp b/src/debug.cpp index d4d07375d..a19186232 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -90,6 +90,7 @@ DebugStack::DebugStack(threadid_t id) threadid = id; stack_i = 0; stack_max_i = 0; + memset(stack, 0, DEBUG_STACK_SIZE*DEBUG_STACK_TEXT_SIZE); } void DebugStack::print(FILE *file, bool everything) -- cgit v1.2.3