summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-12-04 01:21:28 +0000
committerJim Meyering <jim@meyering.net>1996-12-04 01:21:28 +0000
commitad44ac84c8c08fae9990adaf2fbed23fa80317ae (patch)
treeea29fb4aa6a3b54fe5e14f4a699b97de573de5cb /src
parentc7975ba578ea137732f87f43f300e71faf2ef738 (diff)
downloadcoreutils-ad44ac84c8c08fae9990adaf2fbed23fa80317ae.tar.xz
(print_color_indicator): Initialize EXT to NULL.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ls.c b/src/ls.c
index b64cf886b..182175eee 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2405,6 +2405,7 @@ print_color_indicator (const char *name, unsigned int mode, int linkok)
type = C_EXEC;
/* Check the file's suffix only if still classified as C_FILE. */
+ ext = NULL;
if (type == C_FILE)
{
/* Test if NAME has a recognized suffix. */