mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Bugfix for #19588
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25052 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5deb9fca83
commit
f7c33e46e8
2 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-04-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSBundle.m:
|
||||||
|
([+pathForResource:ofType:inRootPath:inDirectory:withVersion:])
|
||||||
|
Tolerate nil/empty resource name for compatibility with MacOS-X
|
||||||
|
nad to fix bug #19588
|
||||||
|
|
||||||
2007-04-13 Ricccardo Mottola <riccardo@kaffe.org>
|
2007-04-13 Ricccardo Mottola <riccardo@kaffe.org>
|
||||||
|
|
||||||
* Source/NSSortDescriptor.m : removed C99-ism
|
* Source/NSSortDescriptor.m : removed C99-ism
|
||||||
|
|
|
@ -1595,11 +1595,9 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
||||||
NSString *path, *fullpath;
|
NSString *path, *fullpath;
|
||||||
NSEnumerator* pathlist;
|
NSEnumerator* pathlist;
|
||||||
|
|
||||||
if (!name || [name length] == 0)
|
if (name == nil)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
name = @"";
|
||||||
format: @"No resource name specified."];
|
|
||||||
/* NOT REACHED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pathlist = [[self _bundleResourcePathsWithRootPath: rootPath
|
pathlist = [[self _bundleResourcePathsWithRootPath: rootPath
|
||||||
|
@ -1627,7 +1625,9 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fullpath = nil;
|
{
|
||||||
|
fullpath = nil;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue