Skip to content
Snippets Groups Projects
Commit 372821c0 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Also check return value of fclose.

parent 4bd56c3c
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -298,7 +298,11 @@ modelRun(struct model_config setup, MPI_Comm comm)
exit(EXIT_FAILURE);
}
}
fclose(tablefp);
if (fclose(tablefp) != 0)
{
perror("failed to close table file");
exit(EXIT_FAILURE);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment