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:
6
tree.c
6
tree.c
@@ -6258,7 +6258,7 @@ xmlGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nameSpace) {
|
||||
*/
|
||||
int
|
||||
xmlUnsetProp(xmlNodePtr node, const xmlChar *name) {
|
||||
xmlAttrPtr prop, prev = NULL;;
|
||||
xmlAttrPtr prop;
|
||||
|
||||
if ((node == NULL) || (node->type != XML_ELEMENT_NODE) || (name == NULL))
|
||||
return(-1);
|
||||
@@ -6270,7 +6270,6 @@ xmlUnsetProp(xmlNodePtr node, const xmlChar *name) {
|
||||
xmlFreeProp(prop);
|
||||
return(0);
|
||||
}
|
||||
prev = prop;
|
||||
prop = prop->next;
|
||||
}
|
||||
return(-1);
|
||||
@@ -6287,7 +6286,7 @@ xmlUnsetProp(xmlNodePtr node, const xmlChar *name) {
|
||||
*/
|
||||
int
|
||||
xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) {
|
||||
xmlAttrPtr prop, prev = NULL;;
|
||||
xmlAttrPtr prop;
|
||||
|
||||
if ((node == NULL) || (node->type != XML_ELEMENT_NODE) || (name == NULL))
|
||||
return(-1);
|
||||
@@ -6303,7 +6302,6 @@ xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) {
|
||||
xmlFreeProp(prop);
|
||||
return(0);
|
||||
}
|
||||
prev = prop;
|
||||
prop = prop->next;
|
||||
}
|
||||
return(-1);
|
||||
|
Reference in New Issue
Block a user