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:
Emma Anholt 2026-02-05 08:51:48 -08:00 committed by Marge Bot
parent 2eb9420061
commit f13f88b749

View file

@ -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);