mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Handle nil library name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27494 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0488c7760b
commit
b87b7a7b33
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-01-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSBundle.m: ([+bundleForLibrary:]) return nil if the
|
||||
supplied library name is empty.
|
||||
|
||||
2008-12-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSDecimalNumber.m (-initWithBytes:objCType:): Avoid
|
||||
|
|
|
@ -2305,6 +2305,10 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
NSFileManager *fm = [NSFileManager defaultManager];
|
||||
NSRange r;
|
||||
|
||||
if ([libraryName length] == 0)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
/*
|
||||
* Eliminate any base path or extensions.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue