From 0f0d6284b51db4e0f10b698a4461e45f2e774495 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Jan 2019 11:53:10 +0000 Subject: nntp: fix uninitialized variable in event_read do_write must return 0 or 1. --- lib/PublicInbox/NNTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 90a5a3a5..623ffd35 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -902,7 +902,7 @@ sub more ($$) { sub do_write ($$) { my ($self, $data) = @_; my $done = $self->write($data); - return if $self->{closed}; + return 0 if $self->{closed}; # Do not watch for readability if we have data in the queue, # instead re-enable watching for readability when we can -- cgit v1.2.3-24-ge0c7