svn commit: r252377 - head/usr.sbin/pw
Tim Kientzle
kientzle at FreeBSD.org
Sat Jun 29 15:54:18 UTC 2013
Author: kientzle
Date: Sat Jun 29 15:54:17 2013
New Revision: 252377
URL: http://svnweb.freebsd.org/changeset/base/252377
Log:
Fix -Wunsequenced warning
Submitted by: dt71 at gmx.com
Modified:
head/usr.sbin/pw/pw_user.c
Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c Sat Jun 29 15:52:48 2013 (r252376)
+++ head/usr.sbin/pw/pw_user.c Sat Jun 29 15:54:17 2013 (r252377)
@@ -200,7 +200,7 @@ pw_user(struct userconf * cnf, int mode,
strlcpy(dbuf, cnf->home, sizeof(dbuf));
p = dbuf;
if (stat(dbuf, &st) == -1) {
- while ((p = strchr(++p, '/')) != NULL) {
+ while ((p = strchr(p + 1, '/')) != NULL) {
*p = '\0';
if (stat(dbuf, &st) == -1) {
if (mkdir(dbuf, _DEF_DIRMODE) == -1)
More information about the svn-src-all
mailing list