mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* Source/NSApplication.m (-_openFiles): Protect agains empty arguments.
Patch by Luboš Doležel <lubos@dolezel.info> git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65cac93a7b
commit
e0e4395cd7
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-11-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSApplication.m (-_openFiles): Protect agains empty arguments.
|
||||
Patch by Luboš Doležel <lubos@dolezel.info>
|
||||
|
||||
2012-10-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTabView.m (-dealloc): Reset _selected to nil at top of dealloc.
|
||||
|
|
|
@ -4117,12 +4117,16 @@ struct _DelegateWrapper
|
|||
NSString *file = nil;
|
||||
|
||||
[en nextObject]; // skip the first element, which is always empty...
|
||||
while((file = [en nextObject]) != nil)
|
||||
while ((file = [en nextObject]) != nil)
|
||||
{
|
||||
unichar c = [file characterAtIndex: 0];
|
||||
if(c != '-')
|
||||
if ([file length] == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ([file characterAtIndex: 0] != '-')
|
||||
{
|
||||
if(files == nil)
|
||||
if (files == nil)
|
||||
{
|
||||
files = [NSMutableArray array];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue