From 9645f18f25918f17ef46fde304b0ae24e31c84fa Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 25 Mar 2018 19:56:01 +0200 Subject: runtests.pl: fix warning 'use of uninitialized value' follow-up to a9a7b60 Closes #2428 --- tests/runtests.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 "; } } -- cgit v1.2.3