aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cat.c2
-rw-r--r--coreutils/nl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c
index 65f0648f9..dae6089bd 100644
--- a/coreutils/cat.c
+++ b/coreutils/cat.c
@@ -201,7 +201,7 @@ int cat_main(int argc UNUSED_PARAM, char **argv)
201 ns.start = 1; 201 ns.start = 1;
202 ns.inc = 1; 202 ns.inc = 1;
203 ns.sep = "\t"; 203 ns.sep = "\t";
204 ns.empty_str = "\n"; 204 ns.empty_str = NULL;
205 ns.all = !(opts & CAT_OPT_b); /* -n without -b */ 205 ns.all = !(opts & CAT_OPT_b); /* -n without -b */
206 ns.nonempty = (opts & CAT_OPT_b); /* -b (with or without -n) */ 206 ns.nonempty = (opts & CAT_OPT_b); /* -b (with or without -n) */
207 exitcode = EXIT_SUCCESS; 207 exitcode = EXIT_SUCCESS;
diff --git a/coreutils/nl.c b/coreutils/nl.c
index 800b73c26..d06673881 100644
--- a/coreutils/nl.c
+++ b/coreutils/nl.c
@@ -68,7 +68,7 @@ int nl_main(int argc UNUSED_PARAM, char **argv)
68 &ns.width, &ns.sep, &ns.start, &ns.inc, &opt_b); 68 &ns.width, &ns.sep, &ns.start, &ns.inc, &opt_b);
69 ns.all = (opt_b[0] == 'a'); 69 ns.all = (opt_b[0] == 'a');
70 ns.nonempty = (opt_b[0] == 't'); 70 ns.nonempty = (opt_b[0] == 't');
71 ns.empty_str = xasprintf("%*s\n", ns.width + (int)strlen(ns.sep), ""); 71 ns.empty_str = xasprintf("%*s", ns.width + (int)strlen(ns.sep), "");
72 72
73 argv += optind; 73 argv += optind;
74 if (!*argv) 74 if (!*argv)