mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
Xcode: Fix crash: avoid strlen call on NULL char *
Thanks to Johan Björk for the report on the CMake mailing list.
This commit is contained in:
@@ -2693,7 +2693,7 @@ void cmGlobalXCodeGenerator
|
||||
this->CreateObject(cmXCodeObject::ATTRIBUTE_GROUP);
|
||||
const char* osxArch =
|
||||
this->CurrentMakefile->GetDefinition("CMAKE_OSX_ARCHITECTURES");
|
||||
if(strlen(osxArch) == 0)
|
||||
if(!osxArch || strlen(osxArch) == 0)
|
||||
{
|
||||
if(this->XcodeVersion >= 32)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user