diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-26 22:27:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-26 22:27:07 +0000 |
commit | 73fff1660dc58001f97c3163953d44f8a58b5553 (patch) | |
tree | 883906b24df3516bc339ff4606dedc9f0f2859f4 /mdocml.c | |
parent | 5ed11d5fa2bcaf99604e49aad7b8c12099dbf101 (diff) | |
download | mandoc-73fff1660dc58001f97c3163953d44f8a58b5553.tar.gz |
Various fixes.
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |