diff --git a/src/modules/module-protocol-pulse/module-null-sink.c b/src/modules/module-protocol-pulse/module-null-sink.c index 007a33c34..15931bee2 100644 --- a/src/modules/module-protocol-pulse/module-null-sink.c +++ b/src/modules/module-protocol-pulse/module-null-sink.c @@ -112,16 +112,13 @@ 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; } - add_props(props, argument); + if (argument) + add_props(props, argument); if ((str = pw_properties_get(props, "sink_name")) != NULL) { pw_properties_set(props, PW_KEY_NODE_NAME, str);