Re: [xml] xmlReallocLoc() does not accept NULL as first parameter



 Yes, go for it, please commit,


Done (checked in patch is bellow).

Thanks!
Aleksey.


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-xml/ChangeLog,v
retrieving revision 1.1881
diff -u -r1.1881 ChangeLog
--- ChangeLog   22 Jan 2004 07:27:45 -0000      1.1881
+++ ChangeLog   22 Jan 2004 22:18:52 -0000
@@ -1,3 +1,7 @@
+Thu Jan 22 14:17:05 2004  Aleksey Sanin  <aleksey aleksey com>
+
+       * xmlmemory.c: make xmlReallocLoc() accept NULL pointer
+
Thu Jan 22 08:26:20 CET 2004 Daniel Veillard <daniel veillard com>

       * xmlschemastypes.c: applied patch from John Belmonte for
Index: xmlmemory.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/xmlmemory.c,v
retrieving revision 1.49
diff -u -r1.49 xmlmemory.c
--- xmlmemory.c 4 Jan 2004 01:01:14 -0000       1.49
+++ xmlmemory.c 22 Jan 2004 22:18:52 -0000
@@ -310,9 +310,10 @@
    MEMHDR *p;
    unsigned long number;

-    if (!xmlMemInitialized) xmlInitMemory();
    if (ptr == NULL)
-        return(NULL);
+        return(xmlMallocLoc(size, file, line));
+
+    if (!xmlMemInitialized) xmlInitMemory();
    TEST_POINT

    p = CLIENT_2_HDR(ptr);






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]