]> granicus.if.org Git - libevent/commitdiff
Add a forgotten return value check in the unit tests
authorSebastian Hahn <sebastian@torproject.org>
Mon, 11 Apr 2011 15:23:08 +0000 (17:23 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 23 Apr 2011 00:04:58 +0000 (02:04 +0200)
Spotted by clang's static analyzer

test/regress_zlib.c

index 158d0d611425ee4de230e8657b110a2376c120c9..12ddcca9f61c40da41b0bfa0577af0768f6c2211 100644 (file)
@@ -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,