diff options
author | NIIBE Yutaka <[email protected]> | 2017-04-17 00:15:13 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-04-17 00:15:13 +0000 |
commit | 0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81 (patch) | |
tree | a5211becd35f1dccfd139bcf210f0ae7921ac527 /g10/getkey.c | |
parent | g10: Fix import/export filter property match. (diff) | |
download | gnupg-0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81.tar.gz gnupg-0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81.zip |
g10: Minor fixes.
* g10/export.c (cleartext_secret_key_to_openpgp): No initialization.
(do_export_one_keyblock): Initialize with GPG_ERR_NOT_FOUND.
* g10/getkey.c (get_best_pubkey_byname): Add non-null check.
* g10/tofu.c (tofu_set_policy): ERR initialize to 0.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/getkey.c')
-rw-r--r-- | g10/getkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index dab63fa5f..75b8564f3 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -1654,7 +1654,8 @@ get_best_pubkey_byname (ctrl_t ctrl, GETKEY_CTX *retctx, PKT_public_key *pk, if (! ctx->kr_handle) { xfree (ctx); - *retctx = NULL; + if (retctx) + *retctx = NULL; rc = gpg_error_from_syserror (); } else |