properly check if configuration file is opened

closes #21

Change-Id: I2f83b5385ac38bf07d30acb14f40c14bec476830
This commit is contained in:
Jacob Adams 2015-03-17 20:36:47 -04:00 committed by Lionel Sambuc
parent 3bdcd28869
commit e3cf9c04f1

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);
}