From 89d3fcf445609d66c720ad744aff83a861b71856 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Thu, 26 Jan 2023 01:59:39 +0100 Subject: [PATCH] lib-test: ostream-final-trickle - Fix bug occurring when writing single byte. --- src/lib-test/ostream-final-trickle.c | 1 + 1 file changed, 1 insertion(+) 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++) -- 2.47.3