summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-18 07:04:51 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-18 07:04:51 -0500
commit97f50b6e7a1cbc4b5438dac4221c1a8df714e49d (patch)
tree12e9850c20630752d148117bb5bfd0c6159b6d3d /Source
parentf632d20b6407483fdf2554730fdca5e763f44346 (diff)
downloadcmake-97f50b6e7a1cbc4b5438dac4221c1a8df714e49d.tar.gz
BUG: fix null pointer read if def is not defined
Diffstat (limited to 'Source')
-rw-r--r--Source/cmIfCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index b86a7542b8..37b3045513 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();
}