aboutsummaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/config.c b/config.c
index 708b057..f03d98a 100644
--- a/config.c
+++ b/config.c
@@ -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;
}