From f545f9eed42c1176f97482b091f887ac98bb4e5c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 30 Apr 2025 10:34:15 +0200 Subject: [PATCH] intel/compiler tests: fix "is there something after the options" check cc: mesa-stable Part-of: --- src/intel/compiler/brw_asm_tool.c | 2 +- src/intel/compiler/elk/elk_asm_tool.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_asm_tool.c b/src/intel/compiler/brw_asm_tool.c index 3cd9e8abbc1..fc3d4c8a275 100644 --- a/src/intel/compiler/brw_asm_tool.c +++ b/src/intel/compiler/brw_asm_tool.c @@ -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; } diff --git a/src/intel/compiler/elk/elk_asm_tool.c b/src/intel/compiler/elk/elk_asm_tool.c index 29c0734511a..9e83e92c259 100644 --- a/src/intel/compiler/elk/elk_asm_tool.c +++ b/src/intel/compiler/elk/elk_asm_tool.c @@ -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; }