diff options
author | Jim Meyering <jim@meyering.net> | 1997-03-10 04:47:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-03-10 04:47:32 +0000 |
commit | 613357b0abecb668c65318acfa7fe24a2dea9e98 (patch) | |
tree | e6e4ac9af0ec302de220b067f32e33b392094874 /src | |
parent | de397548a8caf7ce2d4c69479aa5c6abf9505c84 (diff) | |
download | coreutils-613357b0abecb668c65318acfa7fe24a2dea9e98.tar.xz |
(decode_switches): Ignore value of COLUMNS envionment
variable when it is the empty string. Suggestion from Ulrich Drepper.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -825,7 +825,7 @@ decode_switches (int argc, char **argv) quote_as_string = 0; line_length = 80; - if ((p = getenv ("COLUMNS"))) + if ((p = getenv ("COLUMNS")) && *p) { if (xstrtol (p, NULL, 0, &tmp_long, NULL) == LONGINT_OK && 0 < tmp_long && tmp_long <= INT_MAX) |