mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix bug in parsing args - a default name without a value should put an empty
string into the defaults dictinary, not attempt to insert a nil object. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3119 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
76f51c0cc3
commit
2c35e21378
1 changed files with 2 additions and 2 deletions
|
@ -696,13 +696,13 @@ static NSMutableString *processName = nil;
|
|||
val = [enumerator nextObject];
|
||||
if (!val)
|
||||
{ // No more args
|
||||
[argDict setObject:nil forKey:key];
|
||||
[argDict setObject:@"" forKey:key]; // arg is empty.
|
||||
done = YES;
|
||||
continue;
|
||||
}
|
||||
else if ([val hasPrefix:@"-"])
|
||||
{ // Yet another argument
|
||||
[argDict setObject:nil forKey:key];
|
||||
[argDict setObject:@"" forKey:key]; // arg is empty.
|
||||
key = val;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue