gpg: Avoid warnings about possible NULL deref.
authorWerner Koch <wk@gnupg.org>
Thu, 7 Jan 2016 18:05:35 +0000 (19:05 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Jan 2016 18:09:16 +0000 (19:09 +0100)
commit8a56a38387c10c02ba0790c655dd5c1d08e4a724
tree24ce7c5fa3c8fbb1f9fa7f17f9f12fbc327ae48a
parent008aa6e6d4b213c3a0d15509eb46cf168b6f2c94
gpg: Avoid warnings about possible NULL deref.

* g10/getkey.c (cache_public_key): Protect deref of CE which actually
can't happen.
* g10/keygen.c (quickgen_set_para): s/sprintf/snprintf/.
* g10/tofu.c (end_transaction, rollback_transaction): Allow NULL for
DB.
* g10/trustdb.c (update_min_ownertrust): Remove useless clearling of
ERR.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/getkey.c
g10/keygen.c
g10/tofu.c
g10/trustdb.c