Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2015 11:38:26 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284114 - head/usr.sbin/pw
Message-ID:  <201506071138.t57BcQfk091931@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506071138.t57BcQfk091931>