BUG: GetDefiniton can return null
This commit is contained in:
parent
fc5bd6b8bc
commit
71b36a7164
|
@ -118,7 +118,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
cmRegularExpression regEntry(args[2].c_str());
|
cmRegularExpression regEntry(args[2].c_str());
|
||||||
|
|
||||||
// check for black line or comment
|
// check for black line or comment
|
||||||
if (regEntry.find(def))
|
if (def && regEntry.find(def))
|
||||||
{
|
{
|
||||||
f = new cmIfFunctionBlocker();
|
f = new cmIfFunctionBlocker();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue