mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 22:10:30 +01:00
freedreno/crashdec: Print an error instead of crashing on fopen() fail.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40077>
This commit is contained in:
parent
2eb9420061
commit
f13f88b749
1 changed files with 4 additions and 0 deletions
|
|
@ -1276,6 +1276,10 @@ main(int argc, char **argv)
|
|||
break;
|
||||
case 'f':
|
||||
in = fopen(optarg, "r");
|
||||
if (!in) {
|
||||
perror("fopen");
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
case 'l':
|
||||
lookback = atoi(optarg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue