1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-13 13:17:36 +03:00

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
This commit is contained in:
Daniel Veillard 2001-03-07 15:57:53 +00:00
parent 33a67808b9
commit 6c831207f8
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 7 16:50:22 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* Makefile.am: Martin Baulig suggested to add -lm
* tree.c: found another bug in xmlNodeGetContent()
Tue Mar 6 09:21:30 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: Bjorn found the error related to strictness of comparison.

View File

@ -11,7 +11,7 @@ bin_PROGRAMS = xmllint
bin_SCRIPTS=xml2-config
lib_LTLIBRARIES = libxml2.la
libxml2_la_LIBADD = @Z_LIBS@
libxml2_la_LIBADD = @Z_LIBS@ -lm
libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@

5
tree.c
View File

@ -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;
}