summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-18 21:45:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-18 21:45:42 (GMT)
commitc0cd47a4029ebd903487ffca78a48a04f2de2fa4 (patch)
tree185121e96442e6a610476b83ae3027ad4a911b55 /Source/cmIfCommand.cxx
parent21224d0bf1904e86c35d232593aabbfb531eae83 (diff)
downloadCMake-c0cd47a4029ebd903487ffca78a48a04f2de2fa4.zip
CMake-c0cd47a4029ebd903487ffca78a48a04f2de2fa4.tar.gz
CMake-c0cd47a4029ebd903487ffca78a48a04f2de2fa4.tar.bz2
fix if logic for null defs
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 37b3045..874c77b 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 (def && !regEntry.find(def))
+ if (!def || !regEntry.find(def))
{
f = new cmIfFunctionBlocker();
}