stringapi: Prevent a NULL dereference in WiX

This commit is contained in:
Ben Boeckel 2014-03-06 17:22:09 -05:00 committed by Brad King
parent 219d6ad610
commit 191f25e2bd
1 changed files with 1 additions and 1 deletions

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())
{