summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-08-31 14:41:08 (GMT)
committerBrad King <brad.king@kitware.com>2004-08-31 14:41:08 (GMT)
commit491bebefa2f6da9221c5d40ce1c4d3ff2da1c401 (patch)
tree6f224fd5026f943c54d1a63e15e6ce2c2f7c9030 /Source/cmFileCommand.cxx
parentdc73da6e930ff98f0920683f322593913e7feb4d (diff)
downloadCMake-491bebefa2f6da9221c5d40ce1c4d3ff2da1c401.zip
CMake-491bebefa2f6da9221c5d40ce1c4d3ff2da1c401.tar.gz
CMake-491bebefa2f6da9221c5d40ce1c4d3ff2da1c401.tar.bz2
BUG: Fix crash when CMAKE_DEBUG_POSTFIX is not set.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 75236ba..14677f4 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -260,6 +260,10 @@ bool cmFileCommand::HandleInstallCommand(
const char* debug_postfix
= m_Makefile->GetDefinition("CMAKE_DEBUG_POSTFIX");
+ if(!debug_postfix)
+ {
+ debug_postfix = "";
+ }
const char* destdir = cmSystemTools::GetEnv("DESTDIR");
std::string extra_dir = "";