json: Fix uninitialized key unref in op_delete

* src/gpgme-json.c (op_delete): Init key.
This commit is contained in:
Andre Heinecke 2018-07-16 19:46:04 +02:00
parent 1933f5b805
commit cc21101a74
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -2607,7 +2607,7 @@ op_delete (cjson_t request, cjson_t result)
gpgme_ctx_t ctx = NULL;
gpgme_ctx_t keylist_ctx = NULL;
gpgme_protocol_t protocol;
gpgme_key_t key;
gpgme_key_t key = NULL;
int secret = 0;
cjson_t j_key = NULL;