summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdocml.c b/mdocml.c
index bdeed340..e699c4dc 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -184,7 +184,7 @@ begin_bufs(const struct md_args *args,
if (-1 == fstat(in->fd, &stin)) {
warn("%s", in->name);
return(1);
- } else if (0 == stin.st_size) {
+ } else if (STDIN_FILENO != in->fd && 0 == stin.st_size) {
warnx("%s: empty file", in->name);
return(1);
} else if (-1 == fstat(out->fd, &stout)) {