mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-25 22:19:59 +01:00
gpg: Initialize a variable even in a never used code path.
* g10/sign.c (write_signature_packets): Init ERR. -- Actually we could also remove the conditional or replace it by a log_assert. GnuPG-bug-id: 5204
This commit is contained in:
parent
1d5c4788ff
commit
83e875a2d1
@ -870,6 +870,8 @@ write_signature_packets (ctrl_t ctrl,
|
||||
else
|
||||
err = 0;
|
||||
}
|
||||
else
|
||||
err = 0; /* Actually never reached. */
|
||||
hash_sigversion_to_magic (md, sig);
|
||||
gcry_md_final (md);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user