mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
the array sizes _can_ differ and the arrays can still match, since chomp
is used at times but it doesn't decrease the array size
This commit is contained in:
parent
34089c93bb
commit
cce931f27d
@ -138,10 +138,6 @@ sub compareparts {
|
|||||||
my $sizefirst=scalar(@$firstref);
|
my $sizefirst=scalar(@$firstref);
|
||||||
my $sizesecond=scalar(@$secondref);
|
my $sizesecond=scalar(@$secondref);
|
||||||
|
|
||||||
if($sizefirst != $sizesecond) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(1 .. $sizefirst) {
|
for(1 .. $sizefirst) {
|
||||||
my $index = $_ - 1;
|
my $index = $_ - 1;
|
||||||
if($firstref->[$index] ne $secondref->[$index]) {
|
if($firstref->[$index] ne $secondref->[$index]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user