X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fxmalloc.c;h=e44d8b0bff4d7336134188ebe736778a1e8a12ae;hb=2d09549421b49587d4680a94dab277646e9fef44;hp=89ab63a4c90805db33ce1e33fcaf0118fbc2f233;hpb=fbcb96cc20a7b5d06136e4c70870e86173e658eb;p=libfirm diff --git a/ir/adt/xmalloc.c b/ir/adt/xmalloc.c index 89ab63a4c..e44d8b0bf 100644 --- a/ir/adt/xmalloc.c +++ b/ir/adt/xmalloc.c @@ -30,6 +30,9 @@ void * void *res = malloc (size); if (!res) xnomem (); + + memset (res, 0x00, size); + return res; } @@ -41,6 +44,7 @@ void * void *res = ptr ? realloc (ptr, size) : malloc (size); if (!res) xnomem (); + return res; }