summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-28 19:17:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-01-28 19:17:32 (GMT)
commitaa21763e0caec11d7b6df0eac5fe828eb95059d1 (patch)
tree8354c2c503bfe832afd39ca2e5f017bac3149056 /Source
parent7c4e57c82132158edf226c5ca57c4f7a8a976c5a (diff)
parentb08657cf0fbe2d02d87a866e7c2dfc29f8d80571 (diff)
downloadCMake-aa21763e0caec11d7b6df0eac5fe828eb95059d1.zip
CMake-aa21763e0caec11d7b6df0eac5fe828eb95059d1.tar.gz
CMake-aa21763e0caec11d7b6df0eac5fe828eb95059d1.tar.bz2
Merge topic 'fix-xcode-generator-crash'
b08657c Xcode: Fix crash: avoid strlen call on NULL char *
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 1395865..358721f 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/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)
{