From 971f71a2afa8903a13bf823b7af38e25afab6f8d Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Mon, 13 Jan 2014 15:19:34 +0000 Subject: [PATCH] tweak git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37594 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPathUtilities.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/NSPathUtilities.m b/Source/NSPathUtilities.m index 6ffe4a64d..f468bd3d4 100644 --- a/Source/NSPathUtilities.m +++ b/Source/NSPathUtilities.m @@ -2303,10 +2303,13 @@ if (domainMask & mask) \ */ path = devroot(mgr, gnustepSystemTools); - /* Failing that, try looking above the base library. - */ - path = devroot(mgr, - [[NSBundle bundleForLibrary: @"gnustep-base"] bundlePath]); + /* Failing that, try looking above the base library. + */ + if (nil == path) + { + path = devroot(mgr, + [[NSBundle bundleForLibrary: @"gnustep-base"] bundlePath]); + } /* If we havent found the developer area relative to the * hierarchy used by the current process, look for the