mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
runtests: fix warning about using an undefined variable
Follow-up from 4d939ef6ceb2db1
This commit is contained in:
parent
3f704083bf
commit
07778542b3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user