diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-11 11:36:13 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-11 11:36:13 +0300 |
commit | 9d4e9c59de533ae28badb22da87cb553783dd133 (patch) | |
tree | 1497631e01225065e680c897ffeb7cf228690af2 /src/debug.cpp | |
parent | 3f153c20d3936d18398149082fc453aa55859b1e (diff) | |
download | hax-minetest-server-9d4e9c59de533ae28badb22da87cb553783dd133.tar.gz hax-minetest-server-9d4e9c59de533ae28badb22da87cb553783dd133.zip |
fixed warnings reported by cppcheck
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 1 |
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) |