mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: module arguments can be NULL
This commit is contained in:
parent
e7b04bca2c
commit
8383e86f33
2 changed files with 3 additions and 7 deletions
|
|
@ -217,7 +217,7 @@ static struct module *create_module(struct client *client, const char *name, con
|
|||
return NULL;
|
||||
}
|
||||
module->name = strdup(name);
|
||||
module->args = strdup(args);
|
||||
module->args = args ? strdup(args) : NULL;
|
||||
module->idx |= MODULE_FLAG;
|
||||
return module;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue