diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -213,10 +213,8 @@ int config_read(char* cfg_file){ else{ //pass to parser //find separator - for(separator = line; *separator && *separator != '='; separator++){ - } - - if(!*separator){ + separator = strchr(line, '='); + if(!separator){ fprintf(stderr, "Not an assignment: %s\n", line); goto bail; } |