summaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-11 11:36:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-11 11:36:13 +0300
commit9d4e9c59de533ae28badb22da87cb553783dd133 (patch)
tree1497631e01225065e680c897ffeb7cf228690af2 /src/debug.cpp
parent3f153c20d3936d18398149082fc453aa55859b1e (diff)
downloadminetest-9d4e9c59de533ae28badb22da87cb553783dd133.tar.gz
minetest-9d4e9c59de533ae28badb22da87cb553783dd133.tar.bz2
minetest-9d4e9c59de533ae28badb22da87cb553783dd133.zip
fixed warnings reported by cppcheck
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp1
1 files changed, 1 insertions, 0 deletions
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)