diff options
author | Eric Wong <e@80x24.org> | 2016-02-28 11:28:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-28 11:30:31 +0000 |
commit | 8f090c1ff5e4eea068f20b30f1f79144aae936a3 (patch) | |
tree | 011ed29661c5afeff7d463c8e686aa0942bafaf5 | |
parent | 2f656efc39d21173a4d47c23434edfe48d200d6d (diff) | |
download | public-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.
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 2 |
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); |