]> granicus.if.org Git - curl/commitdiff
runtests.pl: fix warning 'use of uninitialized value'
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Sun, 25 Mar 2018 17:56:01 +0000 (19:56 +0200)
committerMichael Kaufmann <mail@michael-kaufmann.ch>
Mon, 26 Mar 2018 20:11:54 +0000 (22:11 +0200)
follow-up to a9a7b60

Closes #2428

tests/runtests.pl

index 6503bf779704c35665b15ed3f9c93a3f6c190d3a..f9172007b3f0a2a1c9a4845e26367e1b49ab2580 100755 (executable)
@@ -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 ";
         }
     }