[libxml2] Fix a self assignment issue raised by clang
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix a self assignment issue raised by clang
- Date: Tue, 30 Jun 2015 02:49:00 +0000 (UTC)
commit 58b84e1f822d9323b4bbadeb07ee147cccc96e7e
Author: Scott Graham <scottmg chromium org>
Date: Tue Jun 30 10:47:16 2015 +0800
Fix a self assignment issue raised by clang
For https://bugzilla.gnome.org/show_bug.cgi?id=751679
Also added a few newline cleanups
xmlschemas.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/xmlschemas.c b/xmlschemas.c
index 0657b66..d47512f 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]