From 5ea0dc1fecc1706c7f13acdf0729b1f890f919b4 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Tue, 17 Jul 2012 20:53:57 +0800 Subject: [PATCH] Bug 8458 - $stemmed_operand in C4::Search _build_stemmed_operand is not initialized. Added =q{} to initialize it to the empty string at declaration time. Signed-off-by: Kyle M Hall Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack (cherry picked from commit 696789bae552a6cdf2d5a46c92e3ff9a51586c93) Signed-off-by: Jared Camins-Esakov --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index d0891d4b2a..91e5f2bd0a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -719,7 +719,7 @@ sub _detect_truncation { sub _build_stemmed_operand { my ($operand,$lang) = @_; require Lingua::Stem::Snowball ; - my $stemmed_operand; + my $stemmed_operand=q{}; # If operand contains a digit, it is almost certainly an identifier, and should # not be stemmed. This is particularly relevant for ISBNs and ISSNs, which -- 2.39.5