]> mj.ucw.cz Git - libucw.git/commitdiff
Added a note on xrealloc(NULL, x).
authorMartin Mares <mj@ucw.cz>
Tue, 6 Jul 2004 10:52:31 +0000 (10:52 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 6 Jul 2004 10:52:31 +0000 (10:52 +0000)
lib/realloc.c

index 536f61f9acce4714b53e9a43e6222b6e35ac67d0..c432887015be839f2a8513f09c27a32fc92527e3 100644 (file)
@@ -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);