mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 07:17:57 +02:00
libnm-core: fix crash while converting permissions to list
Accept NULL as equivalent to a 0-length array from set_property().
This commit is contained in:
parent
b40dc506a1
commit
b99b632b47
1 changed files with 3 additions and 0 deletions
|
|
@ -1051,6 +1051,9 @@ perm_strv_to_permlist (char **strv)
|
|||
GSList *list = NULL;
|
||||
int i;
|
||||
|
||||
if (!strv)
|
||||
return NULL;
|
||||
|
||||
for (i = 0; strv[i]; i++) {
|
||||
Permission *p;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue