From 270887309f4b673b13e58c29ea3989c56989590e Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 10 Aug 2016 10:27:05 +0200 Subject: [PATCH] core: Ensure err is initalized in gpg_encrypt * src/engine-gpg.c (gpg_encrypt): Initialize err. --- src/engine-gpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine-gpg.c b/src/engine-gpg.c index ae78d9d1..4fad9771 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -1717,7 +1717,7 @@ gpg_encrypt (void *engine, gpgme_key_t recp[], gpgme_encrypt_flags_t flags, gpgme_data_t plain, gpgme_data_t ciph, int use_armor) { engine_gpg_t gpg = engine; - gpgme_error_t err; + gpgme_error_t err = 0; if (recp) err = add_arg (gpg, "--encrypt");