From cb3975d7129c3a2bd600d1b3e97f51d88ffed03d Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Tue, 23 Mar 2010 23:20:01 +0000 Subject: [PATCH] Bug 504946: Fix "Use of uninitialized value $strs in split at Bugzilla/Search.pm line 1038" r=mkanat, a=mkanat git-svn-id: svn://10.0.0.236/trunk@260023 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Search.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index c5472716980..64f6b8e1a44 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -7075 \ No newline at end of file +7076 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search.pm b/mozilla/webtools/bugzilla/Bugzilla/Search.pm index 76c4cd9509d..56f1a5c28cf 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Search.pm @@ -1048,6 +1048,7 @@ sub GetByWordList { my ($field, $strs) = (@_); my @list; my $dbh = Bugzilla->dbh; + return [] unless defined $strs; foreach my $w (split(/[\s,]+/, $strs)) { my $word = $w;