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:
Richard Frith-Macdonald 2003-04-26 07:25:18 +00:00
parent f4d75d0ffb
commit 6514922219
2 changed files with 6 additions and 0 deletions

View file

@ -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>

View file

@ -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)
{