json: Fix uninitialized key unref in op_delete
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 16 Jul 2018 17:46:04 +0000 (19:46 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 16 Jul 2018 17:46:04 +0000 (19:46 +0200)
* src/gpgme-json.c (op_delete): Init key.

src/gpgme-json.c

index ecdcc08..0aeb7f9 100644 (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;