1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-19 14:50:07 +03:00

Fix a self assignment issue raised by clang

For https://bugzilla.gnome.org/show_bug.cgi?id=751679

Also added a few newline cleanups
This commit is contained in:
Scott Graham 2015-06-30 10:47:16 +08:00 committed by Daniel Veillard
parent 709a952110
commit 58b84e1f82

View File

@ -24186,6 +24186,7 @@ xmlSchemaValidateFacets(xmlSchemaAbstractCtxtPtr actxt,
else
goto pattern_and_enum;
}
/*
* Whitespace handling is only of importance for string-based
* types.
@ -24196,14 +24197,13 @@ xmlSchemaValidateFacets(xmlSchemaAbstractCtxtPtr actxt,
ws = xmlSchemaGetWhiteSpaceFacetValue(type);
} else
ws = XML_SCHEMA_WHITESPACE_COLLAPSE;
/*
* If the value was not computed (for string or
* anySimpleType based types), then use the provided
* type.
*/
if (val == NULL)
valType = valType;
else
if (val != NULL)
valType = xmlSchemaGetValType(val);
ret = 0;