mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:21:41 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue