check_dns: simplify loop

This commit is contained in:
Rolf Eike Beer 2018-07-25 19:05:16 +02:00
parent 9661ee7488
commit e60c6c04f0

View file

@ -168,8 +168,8 @@ main (int argc, char **argv)
temp_buffer++;
/* Strip leading spaces */
for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++)
/* NOOP */;
while (*temp_buffer == ' ')
temp_buffer++;
strip(temp_buffer);
if (temp_buffer==NULL || strlen(temp_buffer)==0) {