e system main - check getgrid return like elsewhere to maake cov happy

fix CID 1425457
This commit is contained in:
Carsten Haitzler 2020-04-23 00:54:35 +01:00
parent 8bf18495f4
commit 089051af9e
1 changed files with 6 additions and 3 deletions

View File

@ -79,10 +79,13 @@ _etc_enlightenment_system_conf(void)
for (i = 0; i < gn; i++)
{
gp = getgrgid(gl[i]);
if (!fnmatch(usergroup, gp->gr_name, 0))
if (gp)
{
in_usergroup = EINA_TRUE;
break;
if (!fnmatch(usergroup, gp->gr_name, 0))
{
in_usergroup = EINA_TRUE;
break;
}
}
}
}