diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 11:38:26 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 11:38:26 +0000 |
| commit | aa02e73442262bdff0eacbf64175e8c0c711a749 (patch) | |
| tree | c2fce8b0ec973f7ecd46102f719674d3de80c878 /pw/pw_user.c | |
| parent | 9a58ddd97ed3d0fc7096b8793c87f971f4ec0009 (diff) | |
| download | pw-darwin-aa02e73442262bdff0eacbf64175e8c0c711a749.tar.gz pw-darwin-aa02e73442262bdff0eacbf64175e8c0c711a749.zip | |
Test explicitly the result of strcmp to be consistent with the rest of the code
Diffstat (limited to 'pw/pw_user.c')
| -rw-r--r-- | pw/pw_user.c | 2 |
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++) |
