aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-12-02 17:38:07 +0100
committercbdev <cb@cbcdn.com>2017-12-02 17:38:07 +0100
commit8874c3bff295f93f2012ae016d5d34270bdb1ebb (patch)
treed74767d7130863fcc697971c4b9c598178931c4d
parent04e248a5e75e677f71b504cd9ad7f6ecf17b00a9 (diff)
downloadmidimonster-8874c3bff295f93f2012ae016d5d34270bdb1ebb.tar.gz
midimonster-8874c3bff295f93f2012ae016d5d34270bdb1ebb.tar.bz2
midimonster-8874c3bff295f93f2012ae016d5d34270bdb1ebb.zip
Fix check on return value
-rw-r--r--config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.c b/config.c
index 72b662c..f03d98a 100644
--- a/config.c
+++ b/config.c
@@ -214,8 +214,7 @@ int config_read(char* cfg_file){
//pass to parser
//find separator
separator = strchr(line, '=');
-
- if(!*separator){
+ if(!separator){
fprintf(stderr, "Not an assignment: %s\n", line);
goto bail;
}