diff options
-rw-r--r-- | miscutils/less.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 19051f6f6..0b0dc0c8b 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -239,7 +239,6 @@ static void data_readlines(void) { | |||
239 | 239 | ||
240 | if(inp == NULL) | 240 | if(inp == NULL) |
241 | inp = (inp_stdin) ? bb_xfopen(CURRENT_TTY, "r") : stdin; | 241 | inp = (inp_stdin) ? bb_xfopen(CURRENT_TTY, "r") : stdin; |
242 | if(inp == NULL) bb_perror_msg_and_die("no tty"); | ||
243 | 242 | ||
244 | if (flags & FLAG_N) | 243 | if (flags & FLAG_N) |
245 | add_linenumbers(); | 244 | add_linenumbers(); |