Skip to content
Snippets Groups Projects
Unverified Commit 0fb5df00 authored by Piotr Balcer's avatar Piotr Balcer Committed by GitHub
Browse files

Merge pull request #5434 from kilobyte/file-after-fclose

test: don't use a FILE pointer after fclose
parents bbd93c8c b2c565ec
No related branches found
No related tags found
No related merge requests found
......@@ -88,10 +88,8 @@ ut_fclose(const char *file, int line, const char *func, FILE *stream)
{
int retval = os_fclose(stream);
if (retval != 0) {
ut_fatal(file, line, func, "!fclose: 0x%llx",
(unsigned long long)stream);
}
if (retval != 0)
ut_fatal(file, line, func, "!fclose");
return retval;
}
......
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