Fix warning.
authorBen Laurie <ben@openssl.org>
Thu, 10 May 2012 20:29:00 +0000 (20:29 +0000)
committerBen Laurie <ben@openssl.org>
Thu, 10 May 2012 20:29:00 +0000 (20:29 +0000)
crypto/cms/cms_enc.c

index f873ce3..bebeaf2 100644 (file)
@@ -74,7 +74,7 @@ BIO *cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec)
        X509_ALGOR *calg = ec->contentEncryptionAlgorithm;
        unsigned char iv[EVP_MAX_IV_LENGTH], *piv = NULL;
        unsigned char *tkey = NULL;
        X509_ALGOR *calg = ec->contentEncryptionAlgorithm;
        unsigned char iv[EVP_MAX_IV_LENGTH], *piv = NULL;
        unsigned char *tkey = NULL;
-       size_t tkeylen;
+       size_t tkeylen = 0;
 
        int ok = 0;
 
 
        int ok = 0;