1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-05 19:35:54 +03:00

valgrind spotted another error that time when running on libxslt

* xpath.c: valgrind spotted another error that time when running
  on libxslt regression tests
Daniel
This commit is contained in:
Daniel Veillard
2002-03-19 18:35:12 +00:00
parent 4b3a84ffcf
commit c62a147963
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
Tue Mar 19 19:33:57 CET 2002 Daniel Veillard <daniel@veillard.com>
* xpath.c: valgrind spotted another error that time when running
on libxslt regression tests
Tue Mar 19 15:24:49 CET 2002 Daniel Veillard <daniel@veillard.com> Tue Mar 19 15:24:49 CET 2002 Daniel Veillard <daniel@veillard.com>
* Makefile.am: adding "make valgrind" running the full regression * Makefile.am: adding "make valgrind" running the full regression

View File

@@ -1578,7 +1578,7 @@ xmlXPathNodeSetAddNs(xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns) {
for (i = 0;i < cur->nodeNr;i++) { for (i = 0;i < cur->nodeNr;i++) {
if ((cur->nodeTab[i] != NULL) && if ((cur->nodeTab[i] != NULL) &&
(cur->nodeTab[i]->type == XML_NAMESPACE_DECL) && (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) &&
(cur->nodeTab[i]->next == node) && (((xmlNsPtr)cur->nodeTab[i])->next == (xmlNsPtr) node) &&
(xmlStrEqual(ns->prefix, ((xmlNsPtr)cur->nodeTab[i])->prefix))) (xmlStrEqual(ns->prefix, ((xmlNsPtr)cur->nodeTab[i])->prefix)))
return; return;
} }