From 3819b62ceaf3f7ba3913f174233efb73a6b74346 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Mon, 11 Apr 2011 17:23:08 +0200 Subject: [PATCH] Add a forgotten return value check in the unit tests Spotted by clang's static analyzer --- test/regress_zlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/regress_zlib.c b/test/regress_zlib.c index 158d0d61..12ddcca9 100644 --- a/test/regress_zlib.c +++ b/test/regress_zlib.c @@ -276,6 +276,7 @@ test_bufferevent_zlib(void *arg) tt_int_op(r, ==, Z_OK); memset(&z_input, 0, sizeof(z_input)); r = inflateInit(&z_input); + tt_int_op(r, ==, Z_OK); /* initialize filters */ bev1 = bufferevent_filter_new(bev1, NULL, zlib_output_filter, -- 2.40.0