From: Martin Mares Date: Tue, 6 Jul 2004 10:52:31 +0000 (+0000) Subject: Added a note on xrealloc(NULL, x). X-Git-Tag: holmes-import~967 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b1abd4eddb7e59715f6505e77f87cb0610d7cc6e;p=libucw.git Added a note on xrealloc(NULL, x). --- diff --git a/lib/realloc.c b/lib/realloc.c index 536f61f9..c4328870 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -16,6 +16,7 @@ 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);