BUG: GetDefiniton can return null

This commit is contained in:
Bill Hoffman 2002-01-18 10:27:56 -05:00
parent fc5bd6b8bc
commit 71b36a7164
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string> const& args)
cmRegularExpression regEntry(args[2].c_str());
// check for black line or comment
if (regEntry.find(def))
if (def && regEntry.find(def))
{
f = new cmIfFunctionBlocker();
}