No need to check for both "not null" and "is space".

The latter implies the former.

Squelches a cppcheck redundantCondition warning.
This commit is contained in:
Guy Harris 2021-01-19 17:06:45 -08:00
parent 793333d039
commit 6db087ae4b
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ static int ws80211_populate_devices(GArray *interfaces)
continue;
*t = 0;
t = line;
while (*t && *t == ' ')
while (*t == ' ')
t++;
memset(&iface_info, 0, sizeof(iface_info));
iface_info.pub = &pub;