Commit 50f759eb authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 378672: Use of uninitialized value in numeric comparison (<=>) at…

Bug 378672: Use of uninitialized value in numeric comparison (<=>) at Bugzilla/Update.pm line 178 - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent fe2aa3a7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment