svn commit: r284114 - head/usr.sbin/pw
Baptiste Daroussin
bapt at FreeBSD.org
Sun Jun 7 11:38:27 UTC 2015
Author: bapt
Date: Sun Jun 7 11:38:26 2015
New Revision: 284114
URL: https://svnweb.freebsd.org/changeset/base/284114
Log:
Test explicitly the result of strcmp to be consistent with the rest of the code
Modified:
head/usr.sbin/pw/pw_user.c
Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c Sun Jun 7 11:35:34 2015 (r284113)
+++ head/usr.sbin/pw/pw_user.c Sun Jun 7 11:38:26 2015 (r284114)
@@ -1126,7 +1126,7 @@ delete_user(struct userconf *cnf, struct
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++)
More information about the svn-src-all
mailing list