aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-04-25 04:11:42 +0000
committerlpsolit%gmail.com <>2007-04-25 04:11:42 +0000
commit50f759eb6c2da98eb682d804a6d767137269ad50 (patch)
treea6e961f467dc15e497962730825ce2173d8960f8 /Bugzilla/Update.pm
parentBug 372589: Firefox squishes bugsearch window making it difficult to use - Pa... (diff)
downloadbugzilla-50f759eb6c2da98eb682d804a6d767137269ad50.tar.gz
bugzilla-50f759eb6c2da98eb682d804a6d767137269ad50.tar.bz2
bugzilla-50f759eb6c2da98eb682d804a6d767137269ad50.zip
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/Update.pm')
-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);