1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-21 15:01:41 +02:00

wks: Make sure that ERR is always initialized.

* tools/wks-util.c (install_key_from_spec_file): Initialize ERR in case
the loop is never run.
--

This is part of
GnuPG-bug-id: 7129
Co-authored-by: Jakub Jelen <jjelen@redhat.com>

(cherry picked from commit 021c27510b)
This commit is contained in:
Werner Koch 2024-05-28 13:54:57 +02:00
parent 234e9db3c3
commit 0b52f83780
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1182,6 +1182,7 @@ install_key_from_spec_file (const char *fname)
goto leave;
}
err = 0;
while (es_read_line (fp, &line, &linelen, &maxlen) > 0)
{
if (!maxlen)