util: fix a scan-build warning (value set but not read)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-03-22 10:43:52 +10:00
parent 05201958eb
commit a1a419df6c

View file

@ -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)