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

fix problem with xmlStreamPop when pattern includes a "." element (see

* pattern.c: fix problem with xmlStreamPop when pattern includes a "." element (see discussion on libxslt list)

svn path=/trunk/; revision=3752
This commit is contained in:
William M. Brack
2008-07-17 05:29:16 +00:00
parent 45efd0878a
commit f8477005ab
2 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
Wed Jul 16 22:28:48 PDT 2008 William Brack <wbrack@mmm.com.hk>
* pattern.c: fix problem with xmlStreamPop when pattern includes
a "." element (see discussion on libxslt list)
Mon Jul 7 15:49:59 CEST 2008 Daniel Veillard <daniel@veillard.com>
* SAX2.c: fix line number on text nodes, problem raised by Ralf Junker

View File

@@ -2285,9 +2285,13 @@ xmlStreamPop(xmlStreamCtxtPtr stream) {
if (stream->blockLevel == stream->level)
stream->blockLevel = -1;
stream->level--;
if (stream->level < 0)
return(-1);
/*
* stream->level can be zero when XML_FINAL_IS_ANY_NODE is set
* (see the thread at
* http://mail.gnome.org/archives/xslt/2008-July/msg00027.html)
*/
if (stream->level)
stream->level--;
/*
* Check evolution of existing states
*/