From: Michael Tremer Date: Sun, 29 Jun 2025 16:31:44 +0000 (+0000) Subject: key: Don't count line numbers when reading signatures X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05659fa3bf00689654661c3bf8d21a8c90df1ce1;p=pakfire.git key: Don't count line numbers when reading signatures We don't read the value again and clang keeps complaining. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/key.c b/src/pakfire/key.c index 05df156d..52365758 100644 --- a/src/pakfire/key.c +++ b/src/pakfire/key.c @@ -897,16 +897,12 @@ static int pakfire_key_read_signature(pakfire_key* key, char* line = NULL; size_t length = 0; - size_t lineno = 0; for (;;) { ssize_t bytes_read = getline(&line, &length, f); if (bytes_read < 0) break; - // Increment the line counter - lineno++; - // Don't parse any comments if (pakfire_string_startswith(line, "untrusted comment:")) continue;