aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c
index 5f02233ca..fb735f994 100644
--- a/coreutils/cat.c
+++ b/coreutils/cat.c
@@ -112,10 +112,10 @@ static int catv(unsigned opts, char **argv)
112 int retval = EXIT_SUCCESS; 112 int retval = EXIT_SUCCESS;
113 int fd; 113 int fd;
114#if ENABLE_FEATURE_CATN 114#if ENABLE_FEATURE_CATN
115 unsigned lineno = 0; 115 bool eol_seen = (opts & (CAT_OPT_n|CAT_OPT_b));
116 unsigned eol_char = (opts & (CAT_OPT_n|CAT_OPT_b)) ? '\n' : 0x100; 116 unsigned eol_char = (eol_seen ? '\n' : 0x100);
117 unsigned skip_num_on = (opts & CAT_OPT_b) ? '\n' : 0x100; 117 unsigned skip_num_on = (opts & CAT_OPT_b) ? '\n' : 0x100;
118 bool eol_seen = 1; 118 unsigned lineno = 0;
119#endif 119#endif
120 120
121 BUILD_BUG_ON(CAT_OPT_e != VISIBLE_ENDLINE); 121 BUILD_BUG_ON(CAT_OPT_e != VISIBLE_ENDLINE);