summaryrefslogtreecommitdiffhomepage
path: root/coreutils/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index a4e324b00..4be499088 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -482,12 +482,11 @@ static NOINLINE unsigned display_single(const struct dnode *dn)
int opt;
#if ENABLE_FEATURE_LS_FILETYPES || ENABLE_FEATURE_LS_COLOR
struct stat statbuf;
- char append;
#endif
-
#if ENABLE_FEATURE_LS_FILETYPES
- append = append_char(dn->dn_mode);
+ char append = append_char(dn->dn_mode);
#endif
+
opt = option_mask32;
/* Do readlink early, so that if it fails, error message