aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-07-16 17:46:04 +0000
committerAndre Heinecke <[email protected]>2018-07-16 17:46:04 +0000
commitcc21101a7494ea0a17c3012fcb86e77b00b494fa (patch)
tree62919f968cf44a082fd8d5f600f09d3d4d990e3d
parentjson: Minor cleanups in cJSON.c (diff)
downloadgpgme-cc21101a7494ea0a17c3012fcb86e77b00b494fa.tar.gz
gpgme-cc21101a7494ea0a17c3012fcb86e77b00b494fa.zip
json: Fix uninitialized key unref in op_delete
* src/gpgme-json.c (op_delete): Init key.
-rw-r--r--src/gpgme-json.c2
1 files changed, 1 insertions, 1 deletions
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;