Bug 378672: Use of uninitialized value in numeric comparison (<=>) at Bugzilla/Update.pm line 178 - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@224973 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1d94d8a9d6
commit
3665a1e03b
@ -173,8 +173,8 @@ sub _synchronize_data {
|
||||
sub _compare_versions {
|
||||
my ($old_ver, $new_ver) = @_;
|
||||
while (scalar(@$old_ver) && scalar(@$new_ver)) {
|
||||
my $old = shift(@$old_ver);
|
||||
my $new = shift(@$new_ver);
|
||||
my $old = shift(@$old_ver) || 0;
|
||||
my $new = shift(@$new_ver) || 0;
|
||||
return $new <=> $old if ($new <=> $old);
|
||||
}
|
||||
return scalar(@$new_ver) <=> scalar(@$old_ver);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user