From: Aki Tuomi Date: Fri, 6 Oct 2017 05:55:33 +0000 (+0300) Subject: test-ostream-escaped: Check flush return value X-Git-Tag: 2.2.34~291 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a61586114ec620f2807f5c7ecae8604676f8dc5;p=thirdparty%2Fdovecot%2Fcore.git test-ostream-escaped: Check flush return value Found by coverity --- diff --git a/src/lib/test-ostream-escaped.c b/src/lib/test-ostream-escaped.c index 4c0e7446cf..0ca29fd39d 100644 --- a/src/lib/test-ostream-escaped.c +++ b/src/lib/test-ostream-escaped.c @@ -72,7 +72,7 @@ static void test_ostream_escaped_hex(void) test_begin("test_ostream_escaped_hex()"); test_assert(o_stream_send_str(os_encode, "hello, world") == 12); - o_stream_flush(os_encode); + test_assert(o_stream_flush(os_encode) == 1); test_assert(strcmp(str_c(str), "68656c6c6f2c20776f726c64") == 0);