summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-08-17 16:35:06 +0200
committerByron Jones <glob@mozilla.com>2015-08-17 16:35:06 +0200
commit3dae100b6b7dd2db8c2fed80c9c1b68c07140894 (patch)
tree31c2c94f7910c69eb58f91348929318973603a33
parentd247ef1bcd7506152b99e091f4a8f4251b78c627 (diff)
downloadbugzilla-3dae100b6b7dd2db8c2fed80c9c1b68c07140894.tar.gz
bugzilla-3dae100b6b7dd2db8c2fed80c9c1b68c07140894.tar.xz
Bug 1195315 - Use of uninitialized value in string eq at Bugzilla/Product.pm line 99
-rw-r--r--Bugzilla/Product.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm
index 5837d8457..491658614 100644
--- a/Bugzilla/Product.pm
+++ b/Bugzilla/Product.pm
@@ -96,6 +96,7 @@ sub create {
# Some fields can be NULLs
foreach my $field (qw( default_op_sys_id default_platform_id )) {
+ next unless exists $params->{$field} && defined $params->{$field};
$params->{$field} = undef if $params->{$field} eq '';
}