summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-10-31 23:00:47 +0000
committerJim Meyering <jim@meyering.net>1992-10-31 23:00:47 +0000
commit26e411da187cbe2e67d334a9230f4836219c24e2 (patch)
treea8ecf54ef31088d773178afabf462cf144dfe3dc
parentb01778752f699303762e2307867d462133ae2b1a (diff)
downloadgnulib-26e411da187cbe2e67d334a9230f4836219c24e2.tar.gz
Add parentheses to expressions like (c = *p++) as per suggestionctype-fix
from gcc -Wall.
-rw-r--r--lib/makepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index 5c6112414c..98b78a1e65 100644
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -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))