summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-03-06 22:22:09 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:40 (GMT)
commit191f25e2bd0a8b63d5abfecfd403b9f1414dfc8d (patch)
tree69b584c4fef291aeec7dbc84974c85a02f00d1be /Source/CPack
parent219d6ad6101cb90f951b193d721a19896f7a6b20 (diff)
downloadCMake-191f25e2bd0a8b63d5abfecfd403b9f1414dfc8d.zip
CMake-191f25e2bd0a8b63d5abfecfd403b9f1414dfc8d.tar.gz
CMake-191f25e2bd0a8b63d5abfecfd403b9f1414dfc8d.tar.bz2
stringapi: Prevent a NULL dereference in WiX
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index a8e104b..3915b31 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -1089,7 +1089,7 @@ int cmCPackGenerator::DoPackage()
* may update this during PackageFiles.
* (either putting several names or updating the provided one)
*/
- packageFileNames.push_back(tempPackageFileName);
+ packageFileNames.push_back(tempPackageFileName ? tempPackageFileName : "");
toplevel = tempDirectory;
if ( !this->PackageFiles() || cmSystemTools::GetErrorOccuredFlag())
{