summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-01-16 22:30:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-01-16 22:30:33 +0000
commit4a339a1abe98df7e47434dfaeb2cecb6ca395d48 (patch)
treed8260a8ce1383456bb2bebe7724d11bdbb56b45a /main.c
parent991e8ce56edd88e765887e8769dc2bfb9d7ae72e (diff)
downloadmandoc-4a339a1abe98df7e47434dfaeb2cecb6ca395d48.tar.gz
unbreak reading from stdin after recent parse() restructuring;
patch from florian@
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 38653d6d..2b4a1072 100644
--- a/main.c
+++ b/main.c
@@ -720,7 +720,7 @@ parse(struct curparse *curp, int fd, const char *file)
/* Begin by parsing the file itself. */
assert(file);
- assert(fd > 0);
+ assert(fd >= 0);
rctmp = mparse_readfd(curp->mp, fd, file);
if (fd != STDIN_FILENO)