xmalloc already zeroes the memory
authorDavid Barksdale <amatus.amongus@gmail.com>
Sun, 4 Sep 2016 15:15:06 +0000 (15:15 +0000)
committerDavid Barksdale <amatus.amongus@gmail.com>
Sun, 4 Sep 2016 15:15:06 +0000 (15:15 +0000)
src/util/common_allocation.c

index d0ea8d6670bfc23c11f4066578a98983423b3264..91d0a600a941a3eceebf7ecb20dc7fa3f20ed9fb 100644 (file)
@@ -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)