diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2018-03-25 19:56:01 +0200 |
---|---|---|
committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2018-03-26 22:11:54 +0200 |
commit | 9645f18f25918f17ef46fde304b0ae24e31c84fa (patch) | |
tree | 7a7153e00f2af0d60d399a8fd4256ee7b4762e54 /tests/runtests.pl | |
parent | a26d11b8e112dd71f7a7c7b59e9fe23f9bf434c0 (diff) | |
download | curl-9645f18f25918f17ef46fde304b0ae24e31c84fa.tar.gz |
runtests.pl: fix warning 'use of uninitialized value'
follow-up to a9a7b60
Closes #2428
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 6503bf779..f9172007b 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3909,7 +3909,8 @@ sub singletest { if((!$cmdhash{'option'}) || ($cmdhash{'option'} !~ /no-output/)) { #We may slap on --output! - if (!@validstdout || $cmdhash{'option'} =~ /force-output/) { + if (!@validstdout || + ($cmdhash{'option'} && $cmdhash{'option'} =~ /force-output/)) { $out=" --output $CURLOUT "; } } |