tests: Fix uninitialized value warning

The check for an option must be predicated on options existing at all.

Follow-up to f7cc9e91
This commit is contained in:
Dan Fandrich 2024-04-16 19:50:13 -07:00
parent add22feeef
commit 5b94eced85

View File

@ -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";
}
}