From: Dan Fandrich Date: Wed, 17 Apr 2024 02:50:13 +0000 (-0700) Subject: tests: Fix uninitialized value warning X-Git-Tag: curl-8_8_0~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b94eced85276bf2d3781fe32bb5e4a81cfd7145;p=thirdparty%2Fcurl.git tests: Fix uninitialized value warning The check for an option must be predicated on options existing at all. Follow-up to f7cc9e91 --- 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"; } }