diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-04-11 17:23:08 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-04-23 02:04:58 +0200 |
commit | 3819b62ceaf3f7ba3913f174233efb73a6b74346 (patch) | |
tree | 0594f8638bd8dafd17e9e9c52c87134dc18bf44d /test/regress_zlib.c | |
parent | b0ff7eb5ce55679cf6b47088078563bf37fef1c9 (diff) | |
download | libevent-3819b62ceaf3f7ba3913f174233efb73a6b74346.tar.gz |
Add a forgotten return value check in the unit tests
Spotted by clang's static analyzer
Diffstat (limited to 'test/regress_zlib.c')
-rw-r--r-- | test/regress_zlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |