aboutsummaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-03-07 15:57:53 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-03-07 15:57:53 +0000
commit6c831207f88bd4c6e8f430465b37406f0b064fce (patch)
tree3ee5c177b5de89a9dcd09b73d2984156aaae23ac /tree.c
parent33a67808b97c94342563eeba3c277a8e876e6f8f (diff)
downloadandroid_external_libxml2-6c831207f88bd4c6e8f430465b37406f0b064fce.tar.gz
android_external_libxml2-6c831207f88bd4c6e8f430465b37406f0b064fce.tar.bz2
android_external_libxml2-6c831207f88bd4c6e8f430465b37406f0b064fce.zip
Seems there is still bugs hiding, someone has some flytox ?
- Makefile.am: Martin Baulig suggested to add -lm - tree.c: found another bug in xmlNodeGetContent() Daniel
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index a33658e2..709fe22b 100644
--- a/tree.c
+++ b/tree.c
@@ -3208,6 +3208,9 @@ xmlNodeGetContent(xmlNodePtr cur) {
continue;
}
}
+ if (tmp == cur)
+ break;
+
if (tmp->next != NULL) {
tmp = tmp->next;
continue;
@@ -3217,7 +3220,7 @@ xmlNodeGetContent(xmlNodePtr cur) {
tmp = tmp->parent;
if (tmp == NULL)
break;
- if (tmp == (xmlNodePtr) cur) {
+ if (tmp == cur) {
tmp = NULL;
break;
}