summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-10-31 23:00:13 +0000
committerJim Meyering <jim@meyering.net>1992-10-31 23:00:13 +0000
commit52d8f3c425679de813a0e58530564668e364361d (patch)
tree29d36e0fd2d840f4b0287f58a3c3604da4b68b72 /src/cp.c
parent52cafd727f9c0616e7780f7deddaa29e6a443029 (diff)
downloadcoreutils-52d8f3c425679de813a0e58530564668e364361d.tar.xz
Add parentheses to expressions like (c = *p++) as per suggestion
from gcc -Wall.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cp.c b/src/cp.c
index d71734454..e84fd158b 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -834,7 +834,7 @@ make_path (const_dirpath, src_offset, mode, verbose_fmt_string,
slash = src;
while (*slash == '/')
slash++;
- while (slash = index (slash, '/'))
+ while ((slash = index (slash, '/')))
{
/* Add this directory to the list of directories whose modes need
fixing later. */