summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index dc33272..5f65129 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -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++)