From 700a5600d148865c50dd3b0d2b9233e4414d5789 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 26 Apr 2012 15:10:53 +0800 Subject: bug 749069: more "use of uninitialized" warning fixes --- Bugzilla/Search.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index c52f8a22d..7d2d63284 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1747,6 +1747,9 @@ sub _do_operator_function { my ($self, $func_args) = @_; my $operator = $func_args->{operator}; my $operator_func = OPERATORS->{$operator}; + my $operator_func = OPERATORS->{$$operator} + || ThrowCodeError("search_field_operator_unsupported", + { operator => $$operator }); $self->$operator_func($func_args); } -- cgit v1.2.3-24-g4f1b