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:   d...@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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to