Fix -Wunsequenced warning

Submitted by:	  dt71@gmx.com
This commit is contained in:
Tim Kientzle 2013-06-29 15:54:17 +00:00
parent 64330eb00f
commit 1d47232e08

View File

@ -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)