diff options
author | lpsolit%gmail.com <> | 2007-04-25 04:11:42 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-04-25 04:11:42 +0000 |
commit | 50f759eb6c2da98eb682d804a6d767137269ad50 (patch) | |
tree | a6e961f467dc15e497962730825ce2173d8960f8 /Bugzilla | |
parent | fe2aa3a7f7a16e78489233ec94549b2c1d9fd297 (diff) | |
download | bugs-50f759eb6c2da98eb682d804a6d767137269ad50.tar bugs-50f759eb6c2da98eb682d804a6d767137269ad50.tar.gz bugs-50f759eb6c2da98eb682d804a6d767137269ad50.tar.bz2 bugs-50f759eb6c2da98eb682d804a6d767137269ad50.tar.xz bugs-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')
-rw-r--r-- | Bugzilla/Update.pm | 4 |
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); |