core: Ensure r_key init in gpgme_get_key
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 9 Oct 2018 08:45:12 +0000 (10:45 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 9 Oct 2018 08:45:12 +0000 (10:45 +0200)
commitecfa88e65fda9c9766ad526d57e2fc8b2884f634
tree5ce57f65ee8296a6ef8dbbd4f87a336b2027dcc7
parentbf4aae45129c1093ee7712bdbcdfe1c8f2ca7c0f
core: Ensure r_key init in gpgme_get_key

* src/keylist.c (gpgme_get_key): Move r_key init above
the first invalid value check.

--
This fixes the case where someone passes an unitialized
r_key and no fingerprint.
src/keylist.c