summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-04-25 06:11:42 +0200
committerlpsolit%gmail.com <>2007-04-25 06:11:42 +0200
commit50f759eb6c2da98eb682d804a6d767137269ad50 (patch)
treea6e961f467dc15e497962730825ce2173d8960f8 /Bugzilla
parentfe2aa3a7f7a16e78489233ec94549b2c1d9fd297 (diff)
downloadbugzilla-50f759eb6c2da98eb682d804a6d767137269ad50.tar.gz
bugzilla-50f759eb6c2da98eb682d804a6d767137269ad50.tar.xz
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
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Update.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Update.pm b/Bugzilla/Update.pm
index 596290ab9..f2b17a6b0 100644
--- a/Bugzilla/Update.pm
+++ b/Bugzilla/Update.pm
@@ -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);