summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-13 14:29:45 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-13 14:29:45 -0400
commit6037d1ae66f82bc650fba5ec2a53370199fac380 (patch)
tree7e8f5690b28db7466239ac5f4c8e31491e633348
parent29f7e505a50f502ab54c97f86d8b714184aed8ad (diff)
downloadcmake-6037d1ae66f82bc650fba5ec2a53370199fac380.tar.gz
ENH: Handle non-existing variables
-rw-r--r--Source/cmCommandArgumentParserHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx
index b2a31c8b78..f7da5a23ed 100644
--- a/Source/cmCommandArgumentParserHelper.cxx
+++ b/Source/cmCommandArgumentParserHelper.cxx
@@ -99,7 +99,7 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
return this->AddString(ostr.str().c_str());
}
const char* value = m_Makefile->GetDefinition(var);
- if (m_EscapeQuotes)
+ if (m_EscapeQuotes && value)
{
return this->AddString(cmSystemTools::EscapeQuotes(value).c_str());
}