fix if logic for null defs

This commit is contained in:
Bill Hoffman 2002-01-18 16:45:42 -05:00
parent 21224d0bf1
commit c0cd47a402
1 changed files with 1 additions and 1 deletions

View File

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