mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Do not crash is NSSearchPathForDirectoriesInDomain return nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9671 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8bba1818e9
commit
7889de51e7
1 changed files with 2 additions and 2 deletions
|
@ -517,7 +517,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
||||||
if (env)
|
if (env)
|
||||||
{
|
{
|
||||||
NSArray *paths;
|
NSArray *paths;
|
||||||
NSMutableString *system;
|
NSMutableString *system = nil;
|
||||||
NSString *str;
|
NSString *str;
|
||||||
|
|
||||||
if ((str = [env objectForKey: @"GNUSTEP_TARGET_DIR"]) != nil)
|
if ((str = [env objectForKey: @"GNUSTEP_TARGET_DIR"]) != nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue