changeset 8:f3ddcf3cf2fa

Add parentheses to expressions like (c = *p++) as per suggestion from gcc -Wall.
author Jim Meyering <jim@meyering.net>
date Sat, 31 Oct 1992 23:00:47 +0000
parents 2d78b0003b93
children f8dce34b5ab0
files lib/makepath.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -127,7 +127,7 @@
       slash = dirpath;
       while (*slash == '/')
 	slash++;
-      while (slash = index (slash, '/'))
+      while ((slash = index (slash, '/')))
 	{
 	  *slash = '\0';
 	  if (stat (dirpath, &stats))