Fixing dereference after null check (Coverity: CID 967038)
This commit is contained in:
parent
0017aef89a
commit
f7d79209dc
@ -168,10 +168,10 @@ _RawRestrictionContainer XMLParser::_ReadXMLRestriction() {
|
|||||||
if(0 == std::string((const char *) value).find("only_"))
|
if(0 == std::string((const char *) value).find("only_"))
|
||||||
restriction.restriction.flags.isOnly = true;
|
restriction.restriction.flags.isOnly = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ( xmlStrEqual(k, (const xmlChar *) "except") ) {
|
if ( xmlStrEqual(k, (const xmlChar *) "except") ) {
|
||||||
exception_of_restriction_tag = (const char*) value;
|
exception_of_restriction_tag = (const char*) value;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( k != NULL )
|
if ( k != NULL )
|
||||||
xmlFree( k );
|
xmlFree( k );
|
||||||
|
Loading…
Reference in New Issue
Block a user