summaryrefslogtreecommitdiff
path: root/Source/cmElseCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-18 10:27:56 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-18 10:27:56 -0500
commit71b36a716468141b3de53c1c78254866f02acff4 (patch)
tree1c3a9272c85e4cbb3af336d3848d2d8ffc0c22b8 /Source/cmElseCommand.cxx
parentfc5bd6b8bc2fc8e01e693e0bce422b21afd5641d (diff)
downloadcmake-71b36a716468141b3de53c1c78254866f02acff4.tar.gz
BUG: GetDefiniton can return null
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r--Source/cmElseCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx
index 984397a39f..8242d82569 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();
}