Add parentheses to expressions like (c = *p++) as per suggestion ctype-fix
authorJim Meyering <jim@meyering.net>
Sat, 31 Oct 1992 23:00:47 +0000 (23:00 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 31 Oct 1992 23:00:47 +0000 (23:00 +0000)
from gcc -Wall.

lib/makepath.c

index 5c61124..98b78a1 100644 (file)
@@ -127,7 +127,7 @@ make_path (argpath, mode, parent_mode, owner, group, verbose_fmt_string)
       slash = dirpath;
       while (*slash == '/')
        slash++;
-      while (slash = index (slash, '/'))
+      while ((slash = index (slash, '/')))
        {
          *slash = '\0';
          if (stat (dirpath, &stats))