properly check if configuration file is opened
closes #21 Change-Id: I2f83b5385ac38bf07d30acb14f40c14bec476830
This commit is contained in:
parent
3bdcd28869
commit
e3cf9c04f1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue