mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
Minor fix ... ignore illegal extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16547 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f4d75d0ffb
commit
6514922219
2 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
for changes to screen size.
|
||||
([constrainFrameRect:toScreen:]) bugfix for positioning when the
|
||||
window origin is negative.
|
||||
* Tools/make_services.m: Ignore illegal (null) file extension spec.
|
||||
|
||||
2003-04-26 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
|
|
|
@ -397,6 +397,11 @@ static void addExtensionsForApplication(NSDictionary *info, NSString *app)
|
|||
NSMutableDictionary *d;
|
||||
|
||||
e = [[a1 objectAtIndex: j] lowercaseString];
|
||||
if ([e length] == 0)
|
||||
{
|
||||
NSLog(@"Illegal (nul) extension ignored for - %@\n", app);
|
||||
return;
|
||||
}
|
||||
d = [extensionsMap objectForKey: e];
|
||||
if (d == nil)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue