Explorar el Código

Merge topic 'fix-xcode-generator-crash'

b08657c Xcode: Fix crash: avoid strlen call on NULL char *
Brad King hace 15 años
padre
commit
aa21763e0c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/cmGlobalXCodeGenerator.cxx

+ 1 - 1
Source/cmGlobalXCodeGenerator.cxx

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