runtests: fix warning about using an undefined variable

Follow-up from 4d939ef6ce
This commit is contained in:
Daniel Stenberg 2020-04-08 16:40:25 +02:00
parent 3f704083bf
commit 07778542b3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 2 deletions

View File

@ -4122,10 +4122,10 @@ sub singletest {
}
}
if(($out[0] eq "") && $protstrip[0]) {
if((!$out[0] || ($out[0] eq "")) && $protstrip[0]) {
logmsg "\n $testnum: protocol FAILED!\n".
" There was no content at all in the file $SERVERIN.\n".
" Server glitch? Total curl failure?\n";
" Server glitch? Total curl failure? Returned: $cmdres\n";
return $errorreturncode;
}