From 47821c473102fe527b5447076987f70e9fcf8c72 Mon Sep 17 00:00:00 2001 From: Christian Eggers Date: Fri, 23 Sep 2022 16:55:54 +0200 Subject: [PATCH] advertising: parse_secondary: fix loop condition "secondary" isn't an array of pointers, so the iterator can never be NULL. --- src/advertising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/advertising.c b/src/advertising.c index 1fe371a9f..15ef44def 100644 --- a/src/advertising.c +++ b/src/advertising.c @@ -1055,7 +1055,7 @@ static bool parse_secondary(DBusMessageIter *iter, dbus_message_iter_get_basic(iter, &str); - for (sec = secondary; sec && sec->name; sec++) { + for (sec = secondary; sec->name; sec++) { if (strcmp(str, sec->name)) continue; -- 2.47.3