mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: handle NULL args in load-module
This commit is contained in:
parent
79b6dab5f9
commit
2ce722e740
1 changed files with 2 additions and 2 deletions
|
|
@ -17,9 +17,9 @@ static int do_load_module(struct impl *impl, char *args, const char *flags)
|
|||
struct module *module;
|
||||
char *a[2] = { NULL };
|
||||
|
||||
n = pw_split_ip(args, WHITESPACE, 2, a);
|
||||
n = args != NULL ? pw_split_ip(args, WHITESPACE, 2, a) : 0;
|
||||
if (n < 1) {
|
||||
pw_log_info("load-module expects module name");
|
||||
pw_log_info("load-module expects module name got '%s'", args);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue