From f76d3786a74496476c2db402f324e439abee99d3 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 17 Mar 2017 10:13:59 +0200 Subject: [PATCH] test: lib: Check o_stream_send return value Make static analyzers happier --- src/lib/test-ostream-escaped.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/test-ostream-escaped.c b/src/lib/test-ostream-escaped.c index e484e89000..4c0e7446cf 100644 --- a/src/lib/test-ostream-escaped.c +++ b/src/lib/test-ostream-escaped.c @@ -71,7 +71,7 @@ static void test_ostream_escaped_hex(void) os_encode = o_stream_create_escaped(os_sink, ostream_escaped_hex_format); test_begin("test_ostream_escaped_hex()"); - o_stream_send_str(os_encode, "hello, world"); + test_assert(o_stream_send_str(os_encode, "hello, world") == 12); o_stream_flush(os_encode); test_assert(strcmp(str_c(str), "68656c6c6f2c20776f726c64") == 0); -- 2.47.3