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:
@@ -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
|
||||
|
||||
@@ -2285,9 +2285,13 @@ xmlStreamPop(xmlStreamCtxtPtr stream) {
|
||||
if (stream->blockLevel == stream->level)
|
||||
stream->blockLevel = -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--;
|
||||
if (stream->level < 0)
|
||||
return(-1);
|
||||
/*
|
||||
* Check evolution of existing states
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user