From aac920c48f72eda956bac6a68fc965d0fdb46c62 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Sun, 10 Apr 2005 17:49:48 +0000 Subject: [PATCH] Bug 288857: Use of uninitialized value in bitwise and (&) at Bugzilla/User.pm line 984 - Patch by Gervase Markham r=LpSolit a=myk --- webtools/bugzilla/Bugzilla/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webtools/bugzilla/Bugzilla/User.pm b/webtools/bugzilla/Bugzilla/User.pm index ec3129b320ca..8c5ad3d54d57 100644 --- a/webtools/bugzilla/Bugzilla/User.pm +++ b/webtools/bugzilla/Bugzilla/User.pm @@ -1030,8 +1030,8 @@ sub wants_mail { AND relationship = $relationship AND event IN (" . join(",", @$events) . ") LIMIT 1"); - - return($wants_mail); + + return defined($wants_mail) ? 1 : 0; } sub get_userlist {