mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
global: don't follow NULL parent
This commit is contained in:
parent
79fe89412a
commit
a224234acd
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ uint32_t pw_global_get_permissions(struct pw_global *global, struct pw_client *c
|
|||
|
||||
perms = client->permission_func(global, client, client->permission_data);
|
||||
|
||||
while (global != global->parent) {
|
||||
while (global->parent != NULL && global != global->parent) {
|
||||
global = global->parent;
|
||||
perms &= client->permission_func(global, client, client->permission_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue