1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

added a new API to split a QName without generating any memory allocation

* tree.c include/libxml/tree.h: added a new API to split a
  QName without generating any memory allocation
* valid.c: fixed another problem with namespaces on element
  in mixed content case
* python/tests/reader2.py: updated the testcase with
  Bjorn Reese fix to reader for unsignificant white space
* parser.c HTMLparser.c: cleanup.
Daniel
This commit is contained in:
Daniel Veillard
2003-08-04 01:06:15 +00:00
parent 5ee43b0600
commit 8d73bcb50f
7 changed files with 111 additions and 30 deletions

View File

@ -1789,7 +1789,7 @@ xmlSplitQName(xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix) {
c = *cur;
*prefix = ret;
if (c == 0) {
return(xmlStrndup("", 0));
return(xmlStrndup(BAD_CAST "", 0));
}
len = 0;