]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_name_with_quoting): Add braces around inner if-else stmt.
authorJim Meyering <jim@meyering.net>
Mon, 29 Apr 1996 04:53:53 +0000 (04:53 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 29 Apr 1996 04:53:53 +0000 (04:53 +0000)
src/ls.c

index feac19851a1767e30da991db3f9a366de7c0806b..f1be7112ec0ddd339f2b6c304702c0f8bce1d3ba 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -2268,14 +2268,16 @@ print_name_with_quoting (register char *p, unsigned int mode, int linkok)
     free (quoted);
 
   if (print_with_color)
-    if (color_indicator[C_END].string != NULL)
-      put_indicator (&color_indicator[C_END]);
-    else
-      {
-       put_indicator (&color_indicator[C_LEFT]);
-       put_indicator (&color_indicator[C_NORM]);
-       put_indicator (&color_indicator[C_RIGHT]);
-      }
+    {
+      if (color_indicator[C_END].string != NULL)
+       put_indicator (&color_indicator[C_END]);
+      else
+       {
+         put_indicator (&color_indicator[C_LEFT]);
+         put_indicator (&color_indicator[C_NORM]);
+         put_indicator (&color_indicator[C_RIGHT]);
+       }
+    }
 }
 
 /* Print the file name of `f' with appropriate quoting.