properly check if configuration file is opened

closes #21

Change-Id: I2f83b5385ac38bf07d30acb14f40c14bec476830
This commit is contained in:
Jacob Adams
2015-03-18 08:25:19 +01:00
committed by sambuc
parent 3bdcd28869
commit e3cf9c04f1
+1 -1
View File
@@ -379,7 +379,7 @@ static void parse_config()
dbg("Parsing file %s",config_file);
yyin = fopen(config_file, "r");
if (yyin < 0) {
if (yyin == NULL) {
dbg("Can not open config file:"
" %d.\n", errno);
}