projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added DBG macro calls
[libfirm]
/
ir
/
adt
/
xmalloc.c
diff --git
a/ir/adt/xmalloc.c
b/ir/adt/xmalloc.c
index
89ab63a
..
e44d8b0
100644
(file)
--- 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;
}