summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmElseCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx
index 984397a..8242d82 100644
--- a/Source/cmElseCommand.cxx
+++ b/Source/cmElseCommand.cxx
@@ -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();
}