From b1abd4eddb7e59715f6505e77f87cb0610d7cc6e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 6 Jul 2004 10:52:31 +0000 Subject: [PATCH] Added a note on xrealloc(NULL, x). --- lib/realloc.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5