IOSAD-172 Have to decide for __block manually, needed IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Sat, 27 Jun 2020 13:27:42 +0200
branchIOSAD-172
changeset 1505807e165af6c1
parent 1504 01af9d5cf102
child 1506 264e11853a2b
IOSAD-172 Have to decide for __block manually, needed
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Sat Jun 27 13:26:06 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Sat Jun 27 13:27:42 2020 +0200
     1.3 @@ -101,7 +101,7 @@
     1.4      message *_src = PEP_messageDictToStruct(messageDict);
     1.5      __block message *_dst = NULL;
     1.6      __block stringlist_t *theKeys = NULL;
     1.7 -    PEPDecryptFlags theFlags = 0;
     1.8 +    __block PEPDecryptFlags theFlags = 0;
     1.9  
    1.10      if (flags) {
    1.11          theFlags = *flags;
    1.12 @@ -111,7 +111,7 @@
    1.13          theKeys = PEP_arrayToStringlist(*extraKeys);
    1.14      }
    1.15  
    1.16 -    PEPRating internalRating = PEPRatingUndefined;
    1.17 +    __block PEPRating internalRating = PEPRatingUndefined;
    1.18  
    1.19      PEPStatus theStatus = (PEPStatus) [self runWithPasswords:^PEP_STATUS(PEP_SESSION session) {
    1.20          return decrypt_message(session,