diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-18 12:04:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-18 12:04:51 (GMT) |
commit | 97f50b6e7a1cbc4b5438dac4221c1a8df714e49d (patch) | |
tree | 12e9850c20630752d148117bb5bfd0c6159b6d3d /Source/cmIfCommand.cxx | |
parent | f632d20b6407483fdf2554730fdca5e763f44346 (diff) | |
download | CMake-97f50b6e7a1cbc4b5438dac4221c1a8df714e49d.zip CMake-97f50b6e7a1cbc4b5438dac4221c1a8df714e49d.tar.gz CMake-97f50b6e7a1cbc4b5438dac4221c1a8df714e49d.tar.bz2 |
BUG: fix null pointer read if def is not defined
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index b86a754..37b3045 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -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 (!regEntry.find(def)) + if (def && !regEntry.find(def)) { f = new cmIfFunctionBlocker(); } |