diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-13 09:32:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-13 09:32:53 +0000 |
commit | 6180140e3395ebec3c1e2ae50cd07f0feda24b40 (patch) | |
tree | 88aa22dc76538db9c77c90145da22d7c7a9971fc /src | |
parent | 39f508f044070fdfd9e93694f44c28ac43858edb (diff) | |
download | gnunet-6180140e3395ebec3c1e2ae50cd07f0feda24b40.tar.gz gnunet-6180140e3395ebec3c1e2ae50cd07f0feda24b40.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/util/common_allocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c index 1ae01ca49..40ffe8c61 100644 --- a/src/util/common_allocation.c +++ b/src/util/common_allocation.c | |||
@@ -165,7 +165,7 @@ GNUNET_xrealloc_ (void *ptr, | |||
165 | mem_used = mem_used - *((size_t *) ptr) + n; | 165 | mem_used = mem_used - *((size_t *) ptr) + n; |
166 | #endif | 166 | #endif |
167 | ptr = realloc (ptr, n); | 167 | ptr = realloc (ptr, n); |
168 | if (!ptr) | 168 | if ( (NULL == ptr) && (n > 0) ) |
169 | { | 169 | { |
170 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "realloc"); | 170 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "realloc"); |
171 | abort (); | 171 | abort (); |