From: Sebastian Hahn Date: Mon, 11 Apr 2011 15:23:08 +0000 (+0200) Subject: Add a forgotten return value check in the unit tests X-Git-Tag: release-2.0.11-stable~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3819b62ceaf3f7ba3913f174233efb73a6b74346;p=libevent Add a forgotten return value check in the unit tests Spotted by clang's static analyzer --- 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,