* Ensure all fopen check for NULL (not -1)
* Improve test-perf cycles
This commit is contained in:
parent
344dcacf6f
commit
e1b94d94d2
20 changed files with 24 additions and 23 deletions
|
|
@ -211,7 +211,7 @@ parse_configfile_one(const char *filename,
|
|||
cbuf *cbret = NULL;
|
||||
int ret;
|
||||
|
||||
if ((fp = fopen(filename, "r")) < 0){
|
||||
if ((fp = fopen(filename, "r")) == NULL){
|
||||
clicon_err(OE_UNIX, errno, "open configure file: %s", filename);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue