replaced char* by idents, minor fix in Firm codegen for call
[libfirm] / ir / adt / xmalloc.c
index 89ab63a..e44d8b0 100644 (file)
@@ -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;
 }