summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 22:27:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 22:27:07 +0000
commit73fff1660dc58001f97c3163953d44f8a58b5553 (patch)
tree883906b24df3516bc339ff4606dedc9f0f2859f4 /mdocml.c
parent5ed11d5fa2bcaf99604e49aad7b8c12099dbf101 (diff)
downloadmandoc-73fff1660dc58001f97c3163953d44f8a58b5553.tar.gz
Various fixes.
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)) {