Fixing dereference after null check (Coverity: CID 967038)

This commit is contained in:
DennisOSRM 2013-01-11 20:20:22 +01:00
parent 0017aef89a
commit f7d79209dc

View File

@ -168,9 +168,9 @@ _RawRestrictionContainer XMLParser::_ReadXMLRestriction() {
if(0 == std::string((const char *) value).find("only_"))
restriction.restriction.flags.isOnly = true;
}
}
if ( xmlStrEqual(k, (const xmlChar *) "except") ) {
exception_of_restriction_tag = (const char*) value;
if ( xmlStrEqual(k, (const xmlChar *) "except") ) {
exception_of_restriction_tag = (const char*) value;
}
}
if ( k != NULL )