From ebf9e3b824f8a024f5b9c56caca60bb4ee9ff361 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 28 May 2024 13:54:57 +0200 Subject: [PATCH] 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 (cherry picked from commit 021c27510b52f86a95ae70b5f4ed5d2c3886c3e8) --- tools/wks-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/wks-util.c b/tools/wks-util.c index 2660c938c..c2382cb87 100644 --- a/tools/wks-util.c +++ b/tools/wks-util.c @@ -1169,6 +1169,7 @@ install_key_from_spec_file (const char *fname) goto leave; } + err = 0; while (es_read_line (fp, &line, &linelen, &maxlen) > 0) { if (!maxlen)