Test explicitly the result of strcmp to be consistent with the rest of the code
This commit is contained in:
parent
fc606d2b2c
commit
a68be5f7eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284114
@ -1126,7 +1126,7 @@ delete_user(struct userconf *cnf, struct passwd *pwd, struct carg *a_name,
|
||||
continue;
|
||||
|
||||
for (i = 0; grp->gr_mem[i] != NULL; i++) {
|
||||
if (strcmp(grp->gr_mem[i], a_name->val))
|
||||
if (strcmp(grp->gr_mem[i], a_name->val) != 0)
|
||||
continue;
|
||||
|
||||
for (j = i; grp->gr_mem[j] != NULL; j++)
|
||||
|
Loading…
Reference in New Issue
Block a user