]> mj.ucw.cz Git - libucw.git/blobdiff - lib/realloc.c
Double oops.
[libucw.git] / lib / realloc.c
index 150a3d7bc5593d61d655349a0294a4e3cb3ebe52..c432887015be839f2a8513f09c27a32fc92527e3 100644 (file)
 
 #include <stdlib.h>
 
-#ifndef DMALLOC
+#ifndef DEBUG_DMALLOC
 
 void *
 xrealloc(void *old, uns size)
 {
+  /* We assume that realloc(NULL, x) works like malloc(x), which is true with the glibc. */
   void *x = realloc(old, size);
   if (!x)
     die("Cannot reallocate %d bytes of memory", size);