aboutsummaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-06-17 14:50:34 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-06-17 14:50:34 +0000
commite3c81b50bfe913fdf70c61141b3223611368c78c (patch)
tree32faf996786152ddf90a69ad3d9487757db66766 /tree.c
parent6d473ed349020894228f29d334cba4749f9a7cea (diff)
downloadandroid_external_libxml2-e3c81b50bfe913fdf70c61141b3223611368c78c.tar.gz
android_external_libxml2-e3c81b50bfe913fdf70c61141b3223611368c78c.tar.bz2
android_external_libxml2-e3c81b50bfe913fdf70c61141b3223611368c78c.zip
- tree.c: fixed xmlHasNsProp() accordingly to bug #55683
- doc/xml.html: updated with 2.3.11 Daniel
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tree.c b/tree.c
index 3858990b..3676a267 100644
--- a/tree.c
+++ b/tree.c
@@ -4300,11 +4300,8 @@ xmlHasNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nameSpace) {
* no namespace on the attribute and the element carrying it
*/
if ((xmlStrEqual(prop->name, name)) &&
- (((prop->ns == NULL) && (node->ns != NULL) &&
- (xmlStrEqual(node->ns->href, nameSpace))) ||
- ((prop->ns != NULL) &&
- (xmlStrEqual(prop->ns->href, nameSpace))))) {
- return(prop);
+ ((prop->ns != NULL) && (xmlStrEqual(prop->ns->href, nameSpace)))) {
+ return(prop);
}
prop = prop->next;
}