* 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
|
|
@ -582,7 +582,8 @@ FSM(char *tag,
|
|||
* cxobj *xt = NULL;
|
||||
* cxobj *xerr = NULL;
|
||||
* FILE *f;
|
||||
* f = fopen(filename, "r");
|
||||
* if ((f = fopen(filename, "r")) == NULL)
|
||||
* err;
|
||||
* if ((ret = clixon_xml_parse_file(f, YB_MODULE, yspec, "</config>", &xt, &xerr)) < 0)
|
||||
* err;
|
||||
* xml_free(xt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue