Fix compiler warning by spelling the initializer properly.

This commit is contained in:
Gleb Popov 2021-10-22 19:04:47 +03:00
parent e94adaac24
commit e26b40a75f
2 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ PWTEST(context_create)
{
struct pw_main_loop *loop;
struct pw_context *context;
struct spa_hook listener = { NULL, };
struct spa_hook listener = { { NULL }, };
struct pw_context_events context_events = context_events_error;
int res;
@ -180,7 +180,7 @@ PWTEST(context_properties)
struct pw_main_loop *loop;
struct pw_context *context;
const struct pw_properties *props;
struct spa_hook listener = { NULL, };
struct spa_hook listener = { { NULL }, };
struct pw_context_events context_events = context_events_error;
struct spa_dict_item items[3];