pEpObjCAdapter/PEPPassphraseCache.m
branchIOSAD-172
changeset 1534 49cd42b330f5
parent 1533 ba55bf1eacf6
child 1535 b5796927e5b6
     1.1 --- a/pEpObjCAdapter/PEPPassphraseCache.m	Mon Jun 29 16:39:43 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.m	Mon Jun 29 16:39:43 2020 +0200
     1.3 @@ -94,7 +94,6 @@
     1.4  {
     1.5      NSMutableArray *resultingPassphrases = [NSMutableArray
     1.6                                              arrayWithCapacity:s_maxNumberOfPassphrases + 1];
     1.7 -    [resultingPassphrases addObject:@""];
     1.8      dispatch_sync(self.queue, ^{
     1.9          for (PEPPassphraseCacheEntry *entry in self.mutablePassphraseEntries) {
    1.10              if (![self isExpiredPassphraseEntry:entry]) {
    1.11 @@ -102,6 +101,7 @@
    1.12              }
    1.13          }
    1.14      });
    1.15 +    [resultingPassphrases insertObject:@"" atIndex:0];
    1.16      return [NSArray arrayWithArray:resultingPassphrases];
    1.17  }
    1.18