pulse-server: arguments can be NULL

And module-null-sink does not have mandatory arguments.
This commit is contained in:
Wim Taymans 2021-04-01 09:04:55 +02:00
parent cc7cbaa83b
commit 4aa817771a

View file

@ -112,15 +112,12 @@ static struct module *create_module_null_sink(struct impl *impl, const char *arg
const char *str;
int res;
if (argument == NULL) {
res = -EINVAL;
goto out;
}
props = pw_properties_new(NULL, NULL);
if (props == NULL) {
res = -EINVAL;
goto out;
}
if (argument)
add_props(props, argument);
if ((str = pw_properties_get(props, "sink_name")) != NULL) {