[libxml2] Fix a logic error in Schemas Component Constraints



commit 5cf1deb080fdc92b171410d72ae0a9e45d57382c
Author: Ryan Sleevi <rsleevi chromium org>
Date:   Wed Feb 29 10:56:32 2012 +0800

    Fix a logic error in Schemas Component Constraints

 xmlschemas.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xmlschemas.c b/xmlschemas.c
index ddb31d6..5a5b41e 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -13946,7 +13946,7 @@ xmlSchemaCheckCOSNSSubset(xmlSchemaWildcardPtr sub,
     */
     if ((sub->negNsSet != NULL) &&
 	(super->negNsSet != NULL) &&
-	(sub->negNsSet->value == sub->negNsSet->value))
+	(sub->negNsSet->value == super->negNsSet->value))
 	return (0);
     /*
     * 3.1 sub must be a set whose members are either namespace names or ïabsentï.



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