From: Jim Meyering Date: Sat, 31 Oct 1992 23:00:47 +0000 (+0000) Subject: Add parentheses to expressions like (c = *p++) as per suggestion X-Git-Tag: ISDIGIT-bug-fix~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37ff29b8201d00bb9209e387a427751c2dc5ee2c;p=thirdparty%2Fcoreutils.git Add parentheses to expressions like (c = *p++) as per suggestion from gcc -Wall. --- 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))