projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fad7df
)
xmalloc already zeroes the memory
author
David Barksdale
<amatus.amongus@gmail.com>
Sun, 4 Sep 2016 15:15:06 +0000
(15:15 +0000)
committer
David Barksdale
<amatus.amongus@gmail.com>
Sun, 4 Sep 2016 15:15:06 +0000
(15:15 +0000)
src/util/common_allocation.c
patch
|
blob
|
history
diff --git
a/src/util/common_allocation.c
b/src/util/common_allocation.c
index d0ea8d6670bfc23c11f4066578a98983423b3264..91d0a600a941a3eceebf7ecb20dc7fa3f20ed9fb 100644
(file)
--- a/
src/util/common_allocation.c
+++ b/
src/util/common_allocation.c
@@
-367,7
+367,6
@@
GNUNET_xgrow_ (void **old,
else
{
tmp = GNUNET_xmalloc_ (size, filename, linenumber);
- memset (tmp, 0, size); /* client code should not rely on this, though... */
if (*oldCount > newCount)
*oldCount = newCount; /* shrink is also allowed! */
if (NULL != *old)