libxml2 r3752 - trunk
- From: wbrack svn gnome org
- To: svn-commits-list gnome org
- Subject: libxml2 r3752 - trunk
- Date: Thu, 17 Jul 2008 05:29:16 +0000 (UTC)
Author: wbrack
Date: Thu Jul 17 05:29:16 2008
New Revision: 3752
URL: http://svn.gnome.org/viewvc/libxml2?rev=3752&view=rev
Log:
* pattern.c: fix problem with xmlStreamPop when pattern includes a "." element (see discussion on libxslt list)
Modified:
trunk/ChangeLog
trunk/pattern.c
Modified: trunk/pattern.c
==============================================================================
--- trunk/pattern.c (original)
+++ trunk/pattern.c Thu Jul 17 05:29:16 2008
@@ -2285,9 +2285,13 @@
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
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]