pan/decode: Print errors when closing dump file

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10422>
This commit is contained in:
Icecream95
2021-04-23 17:34:41 +12:00
committed by Marge Bot
parent 1cc9b28a76
commit d01f2d0c65

View File

@@ -189,7 +189,9 @@ static void
pandecode_dump_file_close(void)
{
if (pandecode_dump_stream && pandecode_dump_stream != stderr) {
fclose(pandecode_dump_stream);
if (fclose(pandecode_dump_stream))
perror("pandecode: dump file");
pandecode_dump_stream = NULL;
}
}