mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Silenced intel compiler warnings (reported by Kjartan Maraas, bug
* tree.c pattern.c: Silenced intel compiler warnings (reported by Kjartan Maraas, bug #318517). * xmlschemas.c: The above changes in pattern.c revealed an inconsistency wrt IDCs: we now _only_ pop XPath states, if we really pushed them beforehand; this was previously not checked for the case when we discover an element node to be invalid wrt the content model. Fixed segfault in xmlSchemaGetEffectiveValueConstraint().
This commit is contained in:
@@ -1931,11 +1931,9 @@ xmlStreamPushAttr(xmlStreamCtxtPtr stream,
|
||||
int
|
||||
xmlStreamPop(xmlStreamCtxtPtr stream) {
|
||||
int i, lev;
|
||||
int ret;
|
||||
|
||||
|
||||
if (stream == NULL)
|
||||
return(-1);
|
||||
ret = 0;
|
||||
while (stream != NULL) {
|
||||
/*
|
||||
* Reset block-level.
|
||||
@@ -1945,7 +1943,7 @@ xmlStreamPop(xmlStreamCtxtPtr stream) {
|
||||
|
||||
stream->level--;
|
||||
if (stream->level < 0)
|
||||
ret = -1;
|
||||
return(-1);
|
||||
/*
|
||||
* Check evolution of existing states
|
||||
*/
|
||||
|
Reference in New Issue
Block a user