mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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,
|
||||
int already_locked)
|
||||
{
|
||||
gpg_error_t err;
|
||||
gpg_error_t err = 0;
|
||||
int locked = already_locked;
|
||||
trustitem_t *ti;
|
||||
size_t len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user