summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackTarBZip2Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-30 16:22:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-30 16:22:48 (GMT)
commit7aef92391b4ec5a23efbe03723a19dbeba8f71db (patch)
treed358ff55c2dcbf97986818fbf9d9ea4b302c13cc /Source/CPack/cmCPackTarBZip2Generator.cxx
parent4400842135799bee8bff35ce455ef3d88680d640 (diff)
downloadCMake-7aef92391b4ec5a23efbe03723a19dbeba8f71db.zip
CMake-7aef92391b4ec5a23efbe03723a19dbeba8f71db.tar.gz
CMake-7aef92391b4ec5a23efbe03723a19dbeba8f71db.tar.bz2
ENH: make sure null const char* is not put into ossttringstream to avoid seg faults
Diffstat (limited to 'Source/CPack/cmCPackTarBZip2Generator.cxx')
-rw-r--r--Source/CPack/cmCPackTarBZip2Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackTarBZip2Generator.cxx b/Source/CPack/cmCPackTarBZip2Generator.cxx
index f58dc0f..17efda5 100644
--- a/Source/CPack/cmCPackTarBZip2Generator.cxx
+++ b/Source/CPack/cmCPackTarBZip2Generator.cxx
@@ -108,7 +108,7 @@ int cmCPackTarBZip2Generator::CompressFiles(const char* outFileName,
{
cmCPackLogger(cmCPackLog::LOG_ERROR, "Problem renaming: \""
<< compressOutFile.c_str() << "\" to \""
- << outFileName << std::endl);
+ << (outFileName ? outFileName : "(NULL)") << std::endl);
return 0;
}
}