From 97f50b6e7a1cbc4b5438dac4221c1a8df714e49d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 18 Jan 2002 07:04:51 -0500 Subject: BUG: fix null pointer read if def is not defined --- Source/cmIfCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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(); } -- cgit v0.12