mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01: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 021c27510b52f86a95ae70b5f4ed5d2c3886c3e8)
This commit is contained in:
parent
bb57c808b2
commit
ebf9e3b824
@ -1169,6 +1169,7 @@ install_key_from_spec_file (const char *fname)
|
|||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = 0;
|
||||||
while (es_read_line (fp, &line, &linelen, &maxlen) > 0)
|
while (es_read_line (fp, &line, &linelen, &maxlen) > 0)
|
||||||
{
|
{
|
||||||
if (!maxlen)
|
if (!maxlen)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user