summaryrefslogtreecommitdiff
path: root/legacy/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-04-25 10:43:04 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-04-25 10:43:04 +0000
commit5b1eab91e7d3c48a9c955bee235fc0d12cbfd81c (patch)
tree4f1046e8ba4bb157dac183df7787a1d8e3f2a1bc /legacy/embryo
parent6668343015096ad1d03794b8b3895e9ceb9da9c7 (diff)
valgrind complaint fix!zero out stack before use in embryo.
SVN revision: 70468
Diffstat (limited to 'legacy/embryo')
-rw-r--r--legacy/embryo/src/lib/embryo_amx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/embryo/src/lib/embryo_amx.c b/legacy/embryo/src/lib/embryo_amx.c
index 7a411119d3..689e5e42f4 100644
--- a/legacy/embryo/src/lib/embryo_amx.c
+++ b/legacy/embryo/src/lib/embryo_amx.c
@@ -427,7 +427,7 @@ embryo_program_vm_push(Embryo_Program *ep)
427 return; 427 return;
428 } 428 }
429 hdr = (Embryo_Header *)ep->code; 429 hdr = (Embryo_Header *)ep->code;
430 ep->base = malloc(hdr->stp); 430 ep->base = calloc(1, hdr->stp);
431 if (!ep->base) 431 if (!ep->base)
432 { 432 {
433 ep->pushes = 0; 433 ep->pushes = 0;