Fix -getObjects:andKeys:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40036 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2016-07-26 23:24:56 +00:00
parent c2be055c3e
commit ad428b99d5
3 changed files with 88 additions and 56 deletions

View file

@ -863,10 +863,11 @@ static SEL appSel;
- (void)getObjects: (__unsafe_unretained id[])objects
andKeys: (__unsafe_unretained id<NSCopying>[])keys
{
int i=0;
NSUInteger i=0;
FOR_IN(id, key, self)
keys[i] = key;
objects[i] = [self objectForKey: key];
if (keys != NULL) keys[i] = key;
if (objects != NULL) objects[i] = [self objectForKey: key];
i++;
END_FOR_IN(self)
}