summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-13 18:29:45 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-13 18:29:45 (GMT)
commit6037d1ae66f82bc650fba5ec2a53370199fac380 (patch)
tree7e8f5690b28db7466239ac5f4c8e31491e633348 /Source
parent29f7e505a50f502ab54c97f86d8b714184aed8ad (diff)
downloadCMake-6037d1ae66f82bc650fba5ec2a53370199fac380.zip
CMake-6037d1ae66f82bc650fba5ec2a53370199fac380.tar.gz
CMake-6037d1ae66f82bc650fba5ec2a53370199fac380.tar.bz2
ENH: Handle non-existing variables
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCommandArgumentParserHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx
index b2a31c8..f7da5a2 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());
}