mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
runtests: fix Perl warning after recent patch
```
Use of uninitialized value $hash{"crlf"} in string eq at tests/runtests.pl line 1406.
```
Follow-up to 6cf3d7b1b1 #19318
Closes #19327
This commit is contained in:
parent
6cf3d7b1b1
commit
986ef77833
@ -1403,11 +1403,13 @@ sub singletest_check {
|
||||
}
|
||||
}
|
||||
|
||||
if($hash{'crlf'} eq "headers") {
|
||||
subnewlines(0, \$_) for @protocol;
|
||||
}
|
||||
elsif($hash{'crlf'}) {
|
||||
subnewlines(1, \$_) for @protocol;
|
||||
if($hash{'crlf'}) {
|
||||
if($hash{'crlf'} eq "headers") {
|
||||
subnewlines(0, \$_) for @protocol;
|
||||
}
|
||||
else {
|
||||
subnewlines(1, \$_) for @protocol;
|
||||
}
|
||||
}
|
||||
|
||||
if((!$out[0] || ($out[0] eq "")) && $protocol[0]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user