From 50f759eb6c2da98eb682d804a6d767137269ad50 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 25 Apr 2007 04:11:42 +0000 Subject: =?UTF-8?q?Bug=20378672:=20Use=20of=20uninitialized=20value=20in?= =?UTF-8?q?=20numeric=20comparison=20(<=3D>)=20at=20Bugzilla/Update.pm=20l?= =?UTF-8?q?ine=20178=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20B?= =?UTF-8?q?uclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 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); -- cgit v1.2.1