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/Update.pm | |
parent | Bug 372589: Firefox squishes bugsearch window making it difficult to use - Pa... (diff) | |
download | bugzilla-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.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); |