Fixes some minor code issues found with coverity scan.

This commit is contained in:
Andrea Mazzoleni 2014-05-09 22:07:07 +02:00
parent 8c8b370d4c
commit 23060095c9
4 changed files with 6 additions and 5 deletions

View file

@ -4043,7 +4043,7 @@ void state_write(struct snapraid_state* state)
if (sclose(f) != 0) {
/* LCOV_EXCL_START */
fprintf(stderr, "Error writing the content file '%s' in close(). %s.\n", serrorfile(f), strerror(errno));
fprintf(stderr, "Error closing the content files in close(). %s.\n", strerror(errno));
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}