Bug 8458 - $stemmed_operand in C4::Search _build_stemmed_operand is not initialized... origin/new/bug_8458
authorMark Tompsett <mtompset@hotmail.com>
Tue, 17 Jul 2012 12:53:57 +0000 (20:53 +0800)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 18 Jul 2012 09:46:05 +0000 (11:46 +0200)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Search.pm

index 4f61661..fd81610 100644 (file)
@@ -732,7 +732,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