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/tofu.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/tofu.c')
-rw-r--r-- | g10/tofu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tofu.c b/g10/tofu.c index 4e12905a0..7bef27b19 100644 --- a/g10/tofu.c +++ b/g10/tofu.c @@ -3857,7 +3857,7 @@ tofu_get_validity (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list, gpg_error_t tofu_set_policy (ctrl_t ctrl, kbnode_t kb, enum tofu_policy policy) { - gpg_error_t err; + gpg_error_t err = 0; time_t now = gnupg_get_time (); tofu_dbs_t dbs; PKT_public_key *pk; |