stringapi: Prevent a NULL dereference in WiX

This commit is contained in:
Ben Boeckel authored and Brad King committed 2014-03-08 13:05:40 -05:00
1 parent 219d6ad610
commit 191f25e2bd
1 file changed
+1 -1
+1 -1
View File
@@ -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())
{