intel/compiler tests: fix "is there something after the options" check

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34756>
This commit is contained in:
Eric Engestrom 2025-04-30 10:34:15 +02:00 committed by Marge Bot
parent 729922cdae
commit f545f9eed4
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ int main(int argc, char **argv)
goto end;
}
if (!argv[optind]) {
if (optind == argc) {
fprintf(stderr, "Please specify input file\n");
goto end;
}

View file

@ -282,7 +282,7 @@ int main(int argc, char **argv)
goto end;
}
if (!argv[optind]) {
if (optind == argc) {
fprintf(stderr, "Please specify input file\n");
goto end;
}