1
0
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:
Daniel Veillard
2000-07-21 15:16:39 +00:00
parent 94e906032a
commit 3665069745
6 changed files with 20 additions and 15 deletions

View File

@ -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;