From cc21101a7494ea0a17c3012fcb86e77b00b494fa Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 16 Jul 2018 19:46:04 +0200 Subject: [PATCH] json: Fix uninitialized key unref in op_delete * src/gpgme-json.c (op_delete): Init key. --- src/gpgme-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpgme-json.c b/src/gpgme-json.c index ecdcc08e..0aeb7f91 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -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;