quell warnings for SimpleSearch under 'use warnings'
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 7 Feb 2008 06:11:35 +0000 (00:11 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 8 Feb 2008 11:48:55 +0000 (05:48 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Search.pm

index 69868ab..43b9d46 100644 (file)
@@ -255,7 +255,7 @@ sub SimpleSearch {
                 return ( $error, undef );
             }
         }
-        my $hits;
+        my $hits = 0;
         my $ev;
         while ( ( my $i = ZOOM::event( \@zconns ) ) != 0 ) {
             $ev = $zconns[ $i - 1 ]->last_event();
@@ -268,6 +268,7 @@ sub SimpleSearch {
                     push @results, $record;
                 }
             }
+            $hits = 0;
         }
         return ( undef, \@results );
     }