From a08021eb0e6d711a8e1655eb5736a7f3679ab7a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 26 Jan 2023 21:40:47 +0100 Subject: [PATCH] lib/commonio: drop dead store commonio.c:522:15: warning: Although the value stored to 'cp' is used in the enclosing expression, the value is never actually read from 'cp' [deadcode.DeadStores] Reviewed-by: Alejandro Colomar --- lib/commonio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commonio.c b/lib/commonio.c index 9349597ae..24c472bc9 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -646,7 +646,7 @@ int commonio_open (struct commonio_db *db, int mode) } while (db->ops->fgets (buf, buflen, db->fp) == buf) { - while ( ((cp = strrchr (buf, '\n')) == NULL) + while ( (strrchr (buf, '\n') == NULL) && (feof (db->fp) == 0)) { size_t len; -- 2.47.2