aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/wfopen_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/wfopen_input.c b/libbb/wfopen_input.c
index 3da855fe6..7a11dacd7 100644
--- a/libbb/wfopen_input.c
+++ b/libbb/wfopen_input.c
@@ -22,7 +22,7 @@ FILE *fopen_or_warn_stdin(const char *filename)
if (filename != bb_msg_standard_input
&& filename[0]
- && (filename[0] != '-' || filename[1])
+ && NOT_LONE_DASH(filename)
) {
fp = fopen_or_warn(filename, "r");
}