summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-01-20 17:27:26 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-01-22 11:15:57 (GMT)
commit54fd9e38bb912b94cf32fecac5028d462f4e659f (patch)
tree6dfc3a6eb72fa004a674e3acb07de78dd621ed49 /Source/cmIfCommand.cxx
parentb8ff1c1e72899e7381d93e44b00824faf73d94ab (diff)
downloadCMake-54fd9e38bb912b94cf32fecac5028d462f4e659f.zip
CMake-54fd9e38bb912b94cf32fecac5028d462f4e659f.tar.gz
CMake-54fd9e38bb912b94cf32fecac5028d462f4e659f.tar.bz2
fix uninitialized var in if(NOT foo bar STREQUAL "foo bar")
Also adds test to verify this.
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 22ba28f..4eed477 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -910,6 +910,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
if (newArgs.size() != 1)
{
errorString = "Unknown arguments specified";
+ status = cmake::FATAL_ERROR;
return false;
}