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.
This commit is contained in:
Wim Taymans 2021-07-26 09:39:55 +02:00
parent ab99f4d027
commit 16faacec92

View file

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