aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2016-09-04 15:15:06 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2016-09-04 15:15:06 +0000
commitff480b91b81af25ffdf3f5586f978659fae48fcd (patch)
treeb5fb625b13f3a68bdba0746301e4db5c837b8d81 /src/util/common_allocation.c
parent8fad7df6fb06c75b999d11605015e2471cc98006 (diff)
downloadgnunet-ff480b91b81af25ffdf3f5586f978659fae48fcd.tar.gz
gnunet-ff480b91b81af25ffdf3f5586f978659fae48fcd.zip
xmalloc already zeroes the memory
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index d0ea8d667..91d0a600a 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -367,7 +367,6 @@ GNUNET_xgrow_ (void **old,
367 else 367 else
368 { 368 {
369 tmp = GNUNET_xmalloc_ (size, filename, linenumber); 369 tmp = GNUNET_xmalloc_ (size, filename, linenumber);
370 memset (tmp, 0, size); /* client code should not rely on this, though... */
371 if (*oldCount > newCount) 370 if (*oldCount > newCount)
372 *oldCount = newCount; /* shrink is also allowed! */ 371 *oldCount = newCount; /* shrink is also allowed! */
373 if (NULL != *old) 372 if (NULL != *old)