aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r--networking/udhcp/files.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 8ed485558..59a5e4ab2 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -343,8 +343,10 @@ int read_config(const char *file)
343 p = strchr(buffer, '#'); 343 p = strchr(buffer, '#');
344 if (p) *p = '\0'; 344 if (p) *p = '\0';
345 345
346 if (!(token = strtok(buffer, " \t"))) continue; 346 token = strtok(buffer, " \t");
347 if (!(line = strtok(NULL, ""))) continue; 347 if (!token) continue;
348 line = strtok(NULL, "");
349 if (!line) continue;
348 350
349 /* eat leading whitespace */ 351 /* eat leading whitespace */
350 line = skip_whitespace(line); 352 line = skip_whitespace(line);