diff options
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 8ed4855..59a5e4a 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -343,8 +343,10 @@ int read_config(const char *file) p = strchr(buffer, '#'); if (p) *p = '\0'; - if (!(token = strtok(buffer, " \t"))) continue; - if (!(line = strtok(NULL, ""))) continue; + token = strtok(buffer, " \t"); + if (!token) continue; + line = strtok(NULL, ""); + if (!line) continue; /* eat leading whitespace */ line = skip_whitespace(line); |