From: Michael Kaufmann <mail@michael-kaufmann.ch> Date: Sun, 25 Mar 2018 17:56:01 +0000 (+0200) Subject: runtests.pl: fix warning 'use of uninitialized value' X-Git-Tag: curl-7_60_0~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9645f18f25918f17ef46fde304b0ae24e31c84fa;p=curl runtests.pl: fix warning 'use of uninitialized value' follow-up to a9a7b60 Closes #2428 --- 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 "; } }