1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00

(print_name_with_quoting): Add braces around inner if-else stmt.

This commit is contained in:
Jim Meyering
1996-04-29 04:53:53 +00:00
parent 8455ea2e13
commit 07e148c8e7

View File

@@ -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.