From c49ebfc98297e640354c9d60e127de673921879a Mon Sep 17 00:00:00 2001 From: kientzle Date: Sat, 29 Jun 2013 15:54:17 +0000 Subject: Fix -Wunsequenced warning Submitted by: dt71@gmx.com --- usr.sbin/pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pw') diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 5f4d7a9..b49cfce 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -200,7 +200,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args) 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) -- cgit v1.1