X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Frealloc.c;h=6d6b0baf2304b933602f33db7e24cd2ff7a6b033;hb=d9e3b9f0bdd257d6287c5ba32cab5f648a98ed55;hp=150a3d7bc5593d61d655349a0294a4e3cb3ebe52;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/realloc.c b/lib/realloc.c index 150a3d7b..6d6b0baf 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Memory Re-allocation + * UCW Library -- Memory Re-allocation * * (c) 1997 Martin Mares * @@ -11,11 +11,12 @@ #include -#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);