valgrind complaint fix!zero out stack before use in embryo.

SVN revision: 70468
This commit is contained in:
Carsten Haitzler 2012-04-25 10:43:04 +00:00
parent 6668343015
commit 5b1eab91e7
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ embryo_program_vm_push(Embryo_Program *ep)
return;
}
hdr = (Embryo_Header *)ep->code;
ep->base = malloc(hdr->stp);
ep->base = calloc(1, hdr->stp);
if (!ep->base)
{
ep->pushes = 0;