Skip to content

Commit

Permalink
test-ostream-escaped: Check flush return value
Browse files Browse the repository at this point in the history
Found by coverity
  • Loading branch information
cmouse authored and sirainen committed Oct 10, 2017
1 parent ed64529 commit af9672c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/test-ostream-escaped.c
Expand Up @@ -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);

Expand Down

0 comments on commit af9672c

Please sign in to comment.