[seahorse] pgp: Fix uninitialized memory access



commit b7ec49c45584ac82222b01511d64997e9bf1d920
Author: Stef Walter <stefw gnome org>
Date:   Fri Jun 21 15:03:58 2013 +0200

    pgp: Fix uninitialized memory access

 pgp/seahorse-gpgme-keyring.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-keyring.c b/pgp/seahorse-gpgme-keyring.c
index e772812..fadd2b3 100644
--- a/pgp/seahorse-gpgme-keyring.c
+++ b/pgp/seahorse-gpgme-keyring.c
@@ -1013,5 +1013,7 @@ seahorse_gpgme_keyring_new_context (gpgme_error_t *gerr)
 
        gpgme_set_passphrase_cb (ctx, (gpgme_passphrase_cb_t)passphrase_get, NULL);
        gpgme_set_keylist_mode (ctx, GPGME_KEYLIST_MODE_LOCAL);
+       if (gerr)
+               *gerr = 0;
        return ctx;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]