aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-19 18:35:12 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-19 18:35:12 +0000
commitc62a147963b5839fc815267706eaec381f90ca16 (patch)
tree42e8587dd71f38c2a89d656783b67aa9b1bc4e1a /xpath.c
parent4b3a84ffcfc9791bbb04f443ef4198f563b4e80b (diff)
downloadandroid_external_libxml2-c62a147963b5839fc815267706eaec381f90ca16.tar.gz
android_external_libxml2-c62a147963b5839fc815267706eaec381f90ca16.tar.bz2
android_external_libxml2-c62a147963b5839fc815267706eaec381f90ca16.zip
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
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c2
1 files changed, 1 insertions, 1 deletions
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;
}