mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:10:37 +00:00
Check for nil extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6610 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
88d18dc7df
commit
20d8ea38d1
2 changed files with 6 additions and 0 deletions
|
@ -183,6 +183,8 @@ static Class cacheClass = 0;
|
|||
NSString *the_name = aName;
|
||||
main_bundle = [NSBundle mainBundle];
|
||||
ext = [aName pathExtension];
|
||||
if (ext && [ext length] == 0)
|
||||
ext = nil;
|
||||
|
||||
/* Check if extension is one of the image types */
|
||||
array = [self imageFileTypes];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue