diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-10-19 15:39:54 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-10-19 15:39:54 +0300 |
commit | 76d018a8af27653c40229684724c185830b1c482 (patch) | |
tree | 4765d32bae0948b8e929564d6eba54de1675b7a3 /debian/patches/0013-Fix-a-self-assignment-issue-raised-by-clang.patch | |
parent | 5beef1c7a526e014a37ca8a422911e574d3e6951 (diff) | |
parent | 76c19f4d5b3328c05649314336d27c1f44a49e96 (diff) | |
download | libxml2-76d018a8af27653c40229684724c185830b1c482.tar.gz |
Merge branch 'master' of git://anonscm.debian.org/debian-xml-sgml/libxml2
Diffstat (limited to 'debian/patches/0013-Fix-a-self-assignment-issue-raised-by-clang.patch')
-rw-r--r-- | debian/patches/0013-Fix-a-self-assignment-issue-raised-by-clang.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/0013-Fix-a-self-assignment-issue-raised-by-clang.patch b/debian/patches/0013-Fix-a-self-assignment-issue-raised-by-clang.patch new file mode 100644 index 0000000..5cc28b2 --- /dev/null +++ b/debian/patches/0013-Fix-a-self-assignment-issue-raised-by-clang.patch @@ -0,0 +1,40 @@ +From: Scott Graham <scottmg@chromium.org> +Date: Tue, 30 Jun 2015 10:47:16 +0800 +Subject: 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 file 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; |