From c62a147963b5839fc815267706eaec381f90ca16 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 19 Mar 2002 18:35:12 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ xpath.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 59f6e721..93dac5f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 19 19:33:57 CET 2002 Daniel Veillard + + * xpath.c: valgrind spotted another error that time when running + on libxslt regression tests + Tue Mar 19 15:24:49 CET 2002 Daniel Veillard * Makefile.am: adding "make valgrind" running the full regression diff --git a/xpath.c b/xpath.c index 3a3d4059..4f3e11bc 100644 --- a/xpath.c +++ b/xpath.c @@ -1578,7 +1578,7 @@ xmlXPathNodeSetAddNs(xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns) { for (i = 0;i < cur->nodeNr;i++) { if ((cur->nodeTab[i] != NULL) && (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))) return; }