diff options
Diffstat (limited to 'coreutils/cmp.c')
-rw-r--r-- | coreutils/cmp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/cmp.c b/coreutils/cmp.c index 2b923c845..71007eac1 100644 --- a/coreutils/cmp.c +++ b/coreutils/cmp.c | |||
@@ -27,10 +27,9 @@ static FILE *cmp_xfopen_input(const char * const filename) | |||
27 | { | 27 | { |
28 | FILE *fp; | 28 | FILE *fp; |
29 | 29 | ||
30 | if ((fp = bb_wfopen_input(filename)) != NULL) { | 30 | fp = fopen_or_warn_stdin(filename); |
31 | if (fp) | ||
31 | return fp; | 32 | return fp; |
32 | } | ||
33 | |||
34 | exit(xfunc_error_retval); /* We already output an error message. */ | 33 | exit(xfunc_error_retval); /* We already output an error message. */ |
35 | } | 34 | } |
36 | 35 | ||