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:
6
parser.c
6
parser.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user