g10: Minor fixes.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:15:13 +0000 (09:15 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:15:13 +0000 (09:15 +0900)
commit0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81
treea5211becd35f1dccfd139bcf210f0ae7921ac527
parentaf5f8ecf51f5e1f33e832d4946d02313b78a0536
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 <gniibe@fsij.org>
g10/export.c
g10/getkey.c
g10/tofu.c