mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
test/regress_be: socket_filter_inactive: check bufferevent after creation
Fixes: ../test/regress_bufferevent.c: In function ‘test_bufferevent_socket_filter_inactive’: ../test/regress_bufferevent.c:1180:1: warning: label ‘end’ defined but not used [-Wunused-label] end:
This commit is contained in:
parent
7c8d0152dd
commit
f8081afc5e
@ -1158,7 +1158,9 @@ test_bufferevent_socket_filter_inactive(void *arg)
|
||||
struct bufferevent *bev = NULL, *bevf = NULL;
|
||||
|
||||
bev = bufferevent_socket_new(data->base, -1, 0);
|
||||
tt_assert(bev);
|
||||
bevf = bufferevent_filter_new(bev, NULL, NULL, 0, NULL, NULL);
|
||||
tt_assert(bevf);
|
||||
|
||||
end:
|
||||
if (bevf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user