]> Sergey Matveev's repositories - public-inbox.git/commitdiff
nntp: fix uninitialized variable in event_read
authorEric Wong <e@80x24.org>
Mon, 7 Jan 2019 11:53:10 +0000 (11:53 +0000)
committerEric Wong <e@80x24.org>
Tue, 8 Jan 2019 00:43:40 +0000 (00:43 +0000)
do_write must return 0 or 1.

lib/PublicInbox/NNTP.pm

index 90a5a3a58e686b35eb1367e9accc95d1c9fc1b6f..623ffd35c172ba85d7204570be33b6b563bf501b 100644 (file)
@@ -902,7 +902,7 @@ sub more ($$) {
 sub do_write ($$) {
        my ($self, $data) = @_;
        my $done = $self->write($data);
-       return if $self->{closed};
+       return if $self->{closed};
 
        # Do not watch for readability if we have data in the queue,
        # instead re-enable watching for readability when we can