gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r16482 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r16482 - gnunet/src/util
Date: Sat, 13 Aug 2011 11:32:53 +0200

Author: grothoff
Date: 2011-08-13 11:32:53 +0200 (Sat, 13 Aug 2011)
New Revision: 16482

Modified:
   gnunet/src/util/common_allocation.c
Log:
fix

Modified: gnunet/src/util/common_allocation.c
===================================================================
--- gnunet/src/util/common_allocation.c 2011-08-13 09:21:33 UTC (rev 16481)
+++ gnunet/src/util/common_allocation.c 2011-08-13 09:32:53 UTC (rev 16482)
@@ -165,7 +165,7 @@
   mem_used = mem_used - *((size_t *) ptr) + n;
 #endif
   ptr = realloc (ptr, n);
-  if (!ptr)
+  if ( (NULL == ptr) && (n > 0) )
     {
       GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "realloc");
       abort ();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]