framework-pkcs15: Fixed issued with uninitialized variable keysize

This commit is contained in:
Andreas Schwier 2012-09-24 15:27:18 +02:00 committed by Viktor Tarasov
parent f508b21253
commit db3f5f5f17
1 changed files with 1 additions and 1 deletions

View File

@ -2501,7 +2501,7 @@ pkcs15_gen_keypair(struct sc_pkcs11_slot *slot, CK_MECHANISM_PTR pMechanism,
struct sc_pkcs15_id id;
size_t len;
CK_KEY_TYPE keytype;
CK_ULONG keybits;
CK_ULONG keybits = 0;
char pub_label[SC_PKCS15_MAX_LABEL_SIZE];
char priv_label[SC_PKCS15_MAX_LABEL_SIZE];
int rc, rv = CKR_OK;