From 5b94eced85276bf2d3781fe32bb5e4a81cfd7145 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 16 Apr 2024 19:50:13 -0700 Subject: [PATCH] tests: Fix uninitialized value warning The check for an option must be predicated on options existing at all. Follow-up to f7cc9e91 --- tests/runner.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runner.pm b/tests/runner.pm index d02d40b7b4..a6a26c9d04 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -920,7 +920,7 @@ sub singletest_run { if(!$tool) { $CMDLINE=shell_quote($CURL); - if($cmdhash{'option'} !~ /no-q/) { + if((!$cmdhash{'option'}) || ($cmdhash{'option'} !~ /no-q/)) { $CMDLINE .= " -q"; } }