diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-18 15:27:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-18 15:27:56 (GMT) |
commit | 71b36a716468141b3de53c1c78254866f02acff4 (patch) | |
tree | 1c3a9272c85e4cbb3af336d3848d2d8ffc0c22b8 /Source/cmElseCommand.cxx | |
parent | fc5bd6b8bc2fc8e01e693e0bce422b21afd5641d (diff) | |
download | CMake-71b36a716468141b3de53c1c78254866f02acff4.zip CMake-71b36a716468141b3de53c1c78254866f02acff4.tar.gz CMake-71b36a716468141b3de53c1c78254866f02acff4.tar.bz2 |
BUG: GetDefiniton can return null
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r-- | Source/cmElseCommand.cxx | 2 |
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(); } |