From 16faacec92da4480d370cfa96f6575e7349b98f2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 26 Jul 2021 09:39:55 +0200 Subject: [PATCH] pulse-server: don't compare string pointers We always want to clear the provided blocklist from the properties. The logic tries to only clear when there was a blocklist but it checks this by comparing the string pointer to the fallback, which gives a compiler warning. --- .../module-protocol-pulse/modules/module-switch-on-connect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/module-protocol-pulse/modules/module-switch-on-connect.c b/src/modules/module-protocol-pulse/modules/module-switch-on-connect.c index 5a0eb3bc0..4aab37452 100644 --- a/src/modules/module-protocol-pulse/modules/module-switch-on-connect.c +++ b/src/modules/module-protocol-pulse/modules/module-switch-on-connect.c @@ -292,8 +292,7 @@ struct module *create_module_switch_on_connect(struct impl *impl, const char *ar goto out; } - if (str != DEFAULT_BLOCKLIST) - pw_properties_set(props, "blocklist", NULL); + pw_properties_set(props, "blocklist", NULL); module = module_new(impl, &module_switch_on_connect_methods, sizeof(*d)); if (module == NULL) {