From 6904fb53591ff509b7d15f25ed6d3af8cbe5949a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 25 Apr 2007 04:13:02 +0000 Subject: [PATCH] =?utf8?q?Bug=20378672:=20Use=20of=20uninitialized=20value?= =?utf8?q?=20in=20numeric=20comparison=20(<=3D>)=20at=20Bugzilla/Update.pm?= =?utf8?q?=20line=20178=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric?= =?utf8?q?=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Update.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bugzilla/Update.pm b/Bugzilla/Update.pm index 596290ab9f..f2b17a6b00 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); -- 2.47.2