diff options
-rw-r--r-- | lib/PublicInbox/MboxGz.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/MboxGz.pm b/lib/PublicInbox/MboxGz.pm index 2a55447f..1621cff8 100644 --- a/lib/PublicInbox/MboxGz.pm +++ b/lib/PublicInbox/MboxGz.pm @@ -63,7 +63,7 @@ sub getline { # signal that we're done and can return undef next call: delete $self->{ctx}; my $err = $gz->flush($buf, Z_FINISH); - $err == Z_OK ? $buf : gzip_fail($ctx, $err); + ($err == Z_OK) ? $buf : gzip_fail($ctx, $err); } sub close {} # noop |