mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: don't crash with NULL arguments in module-load
This commit is contained in:
parent
ddfb310087
commit
765ce0564f
1 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,10 @@ static int load_module(struct client *client, const char *name, const char *argu
|
|||
struct pw_properties *props = NULL;
|
||||
const char *str;
|
||||
|
||||
if (argument == NULL) {
|
||||
res = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
props = pw_properties_new_string(argument);
|
||||
if (props == NULL) {
|
||||
res = -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue