From: Stephan Bosch Date: Thu, 26 Jan 2023 00:59:39 +0000 (+0100) Subject: lib-test: ostream-final-trickle - Fix bug occurring when writing single byte. X-Git-Tag: 2.4.0~3039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d3fcf445609d66c720ad744aff83a861b71856;p=thirdparty%2Fdovecot%2Fcore.git lib-test: ostream-final-trickle - Fix bug occurring when writing single byte. --- diff --git a/src/lib-test/ostream-final-trickle.c b/src/lib-test/ostream-final-trickle.c index fc8a00f987..34257f28d7 100644 --- a/src/lib-test/ostream-final-trickle.c +++ b/src/lib-test/ostream-final-trickle.c @@ -89,6 +89,7 @@ o_stream_final_trickle_sendv(struct ostream_private *stream, if (last_iov->iov_len == 0) iov_count--; + ret = 0; if (iov_count > 0) { size_t full_size = 0; for (unsigned int i = 0; i < iov_count; i++)