mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
- nanohttp.c: fixed socklen_t replacement to unsigned int
- parser.c: fixed a space handdling missing at the end of production 28 DOCTYPE. - xmlmemory.c: fixed a stupid bug on the routine to override allocation functions - TODO: updated Daniel
This commit is contained in:
@ -656,13 +656,13 @@ xmlInitMemory(void)
|
||||
int
|
||||
xmlMemSetup(xmlFreeFunc freeFunc, xmlMallocFunc mallocFunc,
|
||||
xmlReallocFunc reallocFunc, xmlStrdupFunc strdupFunc) {
|
||||
if (freeFunc != NULL)
|
||||
if (freeFunc == NULL)
|
||||
return(-1);
|
||||
if (mallocFunc != NULL)
|
||||
if (mallocFunc == NULL)
|
||||
return(-1);
|
||||
if (reallocFunc != NULL)
|
||||
if (reallocFunc == NULL)
|
||||
return(-1);
|
||||
if (strdupFunc != NULL)
|
||||
if (strdupFunc == NULL)
|
||||
return(-1);
|
||||
xmlFree = freeFunc;
|
||||
xmlMalloc = mallocFunc;
|
||||
|
Reference in New Issue
Block a user