Coverity Cleanup
diff --git a/src/Recipient.c b/src/Recipient.c
index 71baa81..3baebef 100644
--- a/src/Recipient.c
+++ b/src/Recipient.c
@@ -383,8 +383,8 @@
byte * pbContext = NULL;
byte rgbKey[256 / 8];
byte * pbSecret = NULL;
- byte * pbKey;
- size_t cbKey;
+ byte * pbKey = NULL;
+ size_t cbKey = 0;
#ifdef USE_CBOR_CONTEXT
context = &pRecipient->m_encrypt.m_message.m_allocContext;
diff --git a/test/encrypt.c b/test/encrypt.c
index c691b4e..874c5f8 100644
--- a/test/encrypt.c
+++ b/test/encrypt.c
@@ -171,7 +171,7 @@
size_t cb;
byte * rgb;
char * sz = "This is the content to be used";
- HCOSE_RECIPIENT hRecip;
+ HCOSE_RECIPIENT hRecip = NULL;
if (hEncObj == NULL) goto errorReturn;
if (!COSE_Enveloped_map_put_int(hEncObj, COSE_Header_Algorithm, cn_cbor_int_create(COSE_Algorithm_AES_CCM_16_64_128, CBOR_CONTEXT_PARAM_COMMA NULL), COSE_PROTECT_ONLY, NULL)) goto errorReturn;