Kaydet (Commit) 44e1eaea authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: variableScope

Change-Id: I2dbab9e972c7470e9bd30692e54c51ee11ffd45b
üst 08cb6e93
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment