mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 10:40:42 +02:00
pan/decode: Print errors when closing dump file
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10422>
This commit is contained in:
parent
1cc9b28a76
commit
d01f2d0c65
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue