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 <>
* xmlmemory.c: make xmlReallocLoc() accept NULL pointer
Thu Jan 22 08:26:20 CET 2004 Daniel Veillard <>
* xmlschemastypes.c: applied patch from John Belmonte for
......@@ -310,9 +310,10 @@ xmlReallocLoc(void *ptr,size_t size, const char * file, int line)
unsigned long number;
if (!xmlMemInitialized) xmlInitMemory();
if (ptr == NULL)
return(xmlMallocLoc(size, file, line));
if (!xmlMemInitialized) xmlInitMemory();
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