mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
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:
parent
add22feeef
commit
5b94eced85
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user