diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-26 14:14:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-26 14:45:37 +0000 |
commit | 44e1eaea6acc248db48a9b6b587baff7d24a6742 (patch) | |
tree | 484b465d0796020e91571057fb188acba9993f10 /xmlsecurity | |
parent | 08cb6e93cc8120b7b86ada52048e4c243828c2d8 (diff) |
cppcheck: variableScope
Change-Id: I2dbab9e972c7470e9bd30692e54c51ee11ffd45b
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index 8a14ed4727c1..cfa3b8a9a896 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -364,7 +364,6 @@ SecurityEnvironment_NssImpl::getPersonalCertificates() throw( SecurityException { PK11SlotInfo *slot = *is; SECKEYPrivateKeyList* priKeyList ; - SECKEYPrivateKeyListNode* curPri ; if( PK11_NeedLogin(slot ) ) { SECStatus nRet = PK11_Authenticate(slot, PR_TRUE, NULL); @@ -379,9 +378,9 @@ SecurityEnvironment_NssImpl::getPersonalCertificates() throw( SecurityException priKeyList = PK11_ListPrivateKeysInSlot(slot) ; if( priKeyList != NULL ) { - for( curPri = PRIVKEY_LIST_HEAD( priKeyList ); - !PRIVKEY_LIST_END( curPri, priKeyList ) && curPri != NULL ; - curPri = PRIVKEY_LIST_NEXT( curPri ) ) + for (SECKEYPrivateKeyListNode* curPri = PRIVKEY_LIST_HEAD(priKeyList); + !PRIVKEY_LIST_END( curPri, priKeyList ) && curPri != NULL; + curPri = PRIVKEY_LIST_NEXT(curPri)) { xcert = NssPrivKeyToXCert( curPri->key ) ; if( xcert != NULL ) |