(turn): Check whether fclose() succeeds.
This commit is contained in:
parent
899bc18853
commit
73a94a3591
1 changed files with 7 additions and 1 deletions
|
@ -113,7 +113,13 @@ turn(void)
|
||||||
msgfilepath);
|
msgfilepath);
|
||||||
return RET_SYS;
|
return RET_SYS;
|
||||||
}
|
}
|
||||||
fclose(fptr);
|
if (fclose(fptr)) {
|
||||||
|
pr("Something went wrong closing the message.\n");
|
||||||
|
logerror("Could not properly close message file (%s).\n",
|
||||||
|
msgfilepath);
|
||||||
|
return RET_SYS;
|
||||||
|
}
|
||||||
|
|
||||||
pr("\n");
|
pr("\n");
|
||||||
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue