From: Daniel Stenberg Date: Mon, 25 Oct 2004 11:28:01 +0000 (+0000) Subject: the array sizes _can_ differ and the arrays can still match, since chomp X-Git-Tag: curl-7_12_3~270 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cce931f27d50d039dd8d11c86e713d297222fcce;p=thirdparty%2Fcurl.git 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 --- diff --git a/tests/getpart.pm b/tests/getpart.pm index 897ac24bb6..969dfd0664 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -138,10 +138,6 @@ sub compareparts { my $sizefirst=scalar(@$firstref); my $sizesecond=scalar(@$secondref); - if($sizefirst != $sizesecond) { - return -1; - } - for(1 .. $sizefirst) { my $index = $_ - 1; if($firstref->[$index] ne $secondref->[$index]) {