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:
Werner Koch 2020-12-23 16:06:09 +01:00
parent 1d5c4788ff
commit 83e875a2d1
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 2 additions and 0 deletions

View File

@ -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);