1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fix a problem in xmlSplitQName resulting in bug #334669 Daniel

* parser.c: fix a problem in xmlSplitQName resulting in bug #334669
Daniel
This commit is contained in:
Daniel Veillard
2006-10-13 12:42:31 +00:00
parent 402b34475d
commit 02a49638a5
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
Fri Oct 13 14:42:44 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parser.c: fix a problem in xmlSplitQName resulting in bug #334669
Fri Oct 13 12:27:22 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parser.c: fixed xmlIOParseDTD handling of @input in error case,

View File

@@ -2492,10 +2492,12 @@ xmlSplitQName(xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix) {
buffer[len] = 0;
}
/* nasty but well=formed
if ((c == ':') && (*cur == 0)) {
if (buffer != NULL)
xmlFree(buffer);
*prefix = NULL;
return(xmlStrdup(name));
} */
}
if (buffer == NULL)
ret = xmlStrndup(buf, len);