diff options
Diffstat (limited to 'more.c')
-rw-r--r-- | more.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -82,12 +82,8 @@ extern int more_main(int argc, char **argv) | |||
82 | if (argc == 0) { | 82 | if (argc == 0) { |
83 | file = stdin; | 83 | file = stdin; |
84 | } else | 84 | } else |
85 | file = fopen(*argv, "r"); | 85 | file = xfopen(*argv, "r"); |
86 | 86 | ||
87 | if (file == NULL) { | ||
88 | perror(*argv); | ||
89 | exit(FALSE); | ||
90 | } | ||
91 | fstat(fileno(file), &st); | 87 | fstat(fileno(file), &st); |
92 | 88 | ||
93 | #ifdef BB_FEATURE_USE_TERMIOS | 89 | #ifdef BB_FEATURE_USE_TERMIOS |