SF Bug Tracker id 3175217 - Crash bug in Parser_addNamespace()
This is a fix to commit 2fb791c9bb
.
This commit is contained in:
parent
c40d2bc0c9
commit
86bef09787
@ -1517,8 +1517,8 @@ static int Parser_addNamespace(
|
||||
}
|
||||
xmlParser->pNeedPrefixNode = NULL;
|
||||
} else {
|
||||
if ((strcmp(pNode->nodeName, pCur->element) != 0) &&
|
||||
pCur->prefix &&
|
||||
if (pCur->prefix &&
|
||||
(strcmp(pNode->nodeName, pCur->element) != 0) &&
|
||||
(strcmp(pNode->prefix, pCur->prefix) != 0))
|
||||
return IXML_FAILED;
|
||||
namespaceUri = Parser_getNameSpace(xmlParser, pCur->prefix);
|
||||
|
Loading…
Reference in New Issue
Block a user