about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-28 11:28:32 +0000
committerEric Wong <e@80x24.org>2016-02-28 11:30:31 +0000
commit8f090c1ff5e4eea068f20b30f1f79144aae936a3 (patch)
tree011ed29661c5afeff7d463c8e686aa0942bafaf5 /lib
parent2f656efc39d21173a4d47c23434edfe48d200d6d (diff)
downloadpublic-inbox-8f090c1ff5e4eea068f20b30f1f79144aae936a3.tar.gz
While empty or "0" should never appear, this allows the
reviewer to think and know less about the context in which
this check is done.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/SearchIdx.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 67272997..1d0d926f 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -337,7 +337,7 @@ sub rlog {
                                 --raw -r --no-abbrev/, $range);
         my $latest;
         my $bytes;
-        while (my $line = <$log>) {
+        while (defined(my $line = <$log>)) {
                 if ($line =~ /$addmsg/o) {
                         my $mime = do_cat_mail($git, $1, \$bytes) or next;
                         $add_cb->($self, $git, $mime, $bytes);