mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
agent: Improve error handling.
* agent/trustlist.c (istrusted_internal): Initialize 'err'. -- There is a plausible path of execution so that a branch condition uses the uninitialized value. Found using the Clang Static Analyzer. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
eb957ffc47
commit
a1650b1edf
@ -398,7 +398,7 @@ static gpg_error_t
|
|||||||
istrusted_internal (ctrl_t ctrl, const char *fpr, int *r_disabled,
|
istrusted_internal (ctrl_t ctrl, const char *fpr, int *r_disabled,
|
||||||
int already_locked)
|
int already_locked)
|
||||||
{
|
{
|
||||||
gpg_error_t err;
|
gpg_error_t err = 0;
|
||||||
int locked = already_locked;
|
int locked = already_locked;
|
||||||
trustitem_t *ti;
|
trustitem_t *ti;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user