summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-29 04:53:53 +0000
committerJim Meyering <jim@meyering.net>1996-04-29 04:53:53 +0000
commit07e148c8e712d0ede4b18aab3b8452d441824189 (patch)
treeb2245e072a936f0e46a10ce4f32ad57033d4203c /src/ls.c
parent8455ea2e13567a9bdb8222c252cefe3774faa005 (diff)
downloadcoreutils-07e148c8e712d0ede4b18aab3b8452d441824189.tar.xz
(print_name_with_quoting): Add braces around inner if-else stmt.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/ls.c b/src/ls.c
index feac19851..f1be7112e 100644
--- 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.