From a1a419df6c36b7d67d9ec048f777e8766b4046a2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 22 Mar 2020 10:43:52 +1000 Subject: [PATCH] util: fix a scan-build warning (value set but not read) Signed-off-by: Peter Hutterer --- src/util-strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-strings.c b/src/util-strings.c index f6dc547..4fad175 100644 --- a/src/util-strings.c +++ b/src/util-strings.c @@ -81,7 +81,7 @@ strv_from_string(const char *in, const char *separators) assert(in != NULL); s = in; - while ((word = next_word(&s, &l, separators)) != NULL) + while (next_word(&s, &l, separators) != NULL) nelems++; if (nelems == 0) -- 2.7.4