Better error handling.
This commit is contained in:
parent
1616d77a0f
commit
6d9da94863
@ -368,5 +368,8 @@ int cw_cfg_load(const char *filename,cw_Cfg_t * cfg)
|
||||
return errno;
|
||||
errs = cw_cfg_read_from_file(f,cfg);
|
||||
fclose(f);
|
||||
return errs;
|
||||
|
||||
if (errs)
|
||||
errno = EINVAL;
|
||||
return errno;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user