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:
Jiří Klimeš
2014-09-18 12:45:30 +02:00
parent b40dc506a1
commit b99b632b47

View File

@@ -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;