mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
schemas: Remove useless if statement
bucket->origTargetNamespace is always NULL in this branch. Fixes #481.
This commit is contained in:
parent
a509694c17
commit
0ce1f8427b
11
xmlschemas.c
11
xmlschemas.c
@ -11152,17 +11152,6 @@ xmlSchemaParseIncludeOrRedefine(xmlSchemaParserCtxtPtr pctxt,
|
||||
* differ from the resulting namespace.
|
||||
*/
|
||||
isChameleon = 1;
|
||||
if (bucket->parsed &&
|
||||
bucket->origTargetNamespace != NULL) {
|
||||
xmlSchemaCustomErr(ACTXT_CAST pctxt,
|
||||
XML_SCHEMAP_SRC_INCLUDE,
|
||||
node, NULL,
|
||||
"The target namespace of the included/redefined schema "
|
||||
"'%s' has to be absent or the same as the "
|
||||
"including/redefining schema's target namespace",
|
||||
schemaLocation, NULL);
|
||||
goto exit_error;
|
||||
}
|
||||
bucket->targetNamespace = pctxt->targetNamespace;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user