aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/fold.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c
index d5e3a4d72..11b880969 100644
--- a/coreutils/fold.c
+++ b/coreutils/fold.c
@@ -41,6 +41,8 @@ static int adjust_column(int column, char c)
41int fold_main(int argc, char **argv); 41int fold_main(int argc, char **argv);
42int fold_main(int argc, char **argv) 42int fold_main(int argc, char **argv)
43{ 43{
44 char *line_out = NULL;
45 int allocated_out = 0;
44 char *w_opt; 46 char *w_opt;
45 int width = 80; 47 int width = 80;
46 int i; 48 int i;
@@ -75,8 +77,6 @@ int fold_main(int argc, char **argv)
75 int c; 77 int c;
76 int column = 0; /* Screen column where next char will go. */ 78 int column = 0; /* Screen column where next char will go. */
77 int offset_out = 0; /* Index in `line_out' for next char. */ 79 int offset_out = 0; /* Index in `line_out' for next char. */
78 static char *line_out = NULL;
79 static int allocated_out = 0;
80 80
81 if (istream == NULL) { 81 if (istream == NULL) {
82 errs |= EXIT_FAILURE; 82 errs |= EXIT_FAILURE;
@@ -95,8 +95,7 @@ int fold_main(int argc, char **argv)
95 column = offset_out = 0; 95 column = offset_out = 0;
96 continue; 96 continue;
97 } 97 }
98 98 rescan:
99rescan:
100 column = adjust_column(column, c); 99 column = adjust_column(column, c);
101 100
102 if (column > width) { 101 if (column > width) {