Commit e9f0811a authored by Aleksey Sanin's avatar Aleksey Sanin
Browse files

make xmlReallocLoc() accept NULL pointer

parent 1516d5b3
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
......
......@@ -310,9 +310,10 @@ xmlReallocLoc(void *ptr,size_t size, const char * file, int line)
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment