Skip to content
Snippets Groups Projects
Commit 5518bddb authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix return value of fclose_dstats - not currently checked anywhere

fclose() returns 0 on success.
parent 0b325a45
Branches
Tags
No related merge requests found
......@@ -84,7 +84,7 @@ FILE* fopen_cstats(scfg_t* cfg, uint node, bool for_write)
/****************************************************************************/
bool fclose_dstats(FILE* fp)
{
return fclose(fp);
return fclose(fp) == 0;
}
/****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment