summaryrefslogtreecommitdiff
path: root/lib/makepath.c
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
commit37ff29b8201d00bb9209e387a427751c2dc5ee2c (patch)
tree914a8c4aeb2be3a52d1936e623aac175e3e0353d /lib/makepath.c
parent52d8f3c425679de813a0e58530564668e364361d (diff)
downloadcoreutils-37ff29b8201d00bb9209e387a427751c2dc5ee2c.tar.xz
Add parentheses to expressions like (c = *p++) as per suggestion
from gcc -Wall.
Diffstat (limited to 'lib/makepath.c')
-rw-r--r--lib/makepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index 5c6112414..98b78a1e6 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))