[libxml2] Type mismatch in xmlschemastypes.c



commit e79226ccdb377cb61fdee69aaf366bb9c5838de9
Author: Gaurav <g gupta samsung com>
Date:   Thu Nov 28 22:50:57 2013 +0800

    Type mismatch in xmlschemastypes.c
    
    For https://bugzilla.gnome.org/show_bug.cgi?id=715152

 xmlschemastypes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index ec403e8..8cc6bbd 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -4933,7 +4933,7 @@ xmlSchemaCompareValues(xmlSchemaValPtr x, xmlSchemaValPtr y) {
 
     if (y->type == XML_SCHEMAS_STRING)
        yws = XML_SCHEMA_WHITESPACE_PRESERVE;
-    else if (x->type == XML_SCHEMAS_NORMSTRING)
+    else if (y->type == XML_SCHEMAS_NORMSTRING)
         yws = XML_SCHEMA_WHITESPACE_REPLACE;
     else
         yws = XML_SCHEMA_WHITESPACE_COLLAPSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]