From ad2778a7ba836f39b9761eacc101a91f599cf40e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 7 Jun 2015 11:38:26 +0000 Subject: Test explicitly the result of strcmp to be consistent with the rest of the code --- pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- cgit v1.2.3-56-ge451