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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user