core: Ensure err is initalized in gpg_encrypt

* src/engine-gpg.c (gpg_encrypt): Initialize err.
This commit is contained in:
Andre Heinecke 2016-08-10 10:27:05 +02:00
parent 0c222e1b3c
commit 270887309f

View File

@ -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");