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:
Azat Khuzhin 2015-10-30 18:37:44 +03:00
parent 7c8d0152dd
commit f8081afc5e

View File

@ -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)