aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-01-18 08:41:03 +0000
committerXin LI <delphij@FreeBSD.org>2016-01-18 08:41:03 +0000
commit9927192e4ffb982fcce1e26ae7bc0902d112dc18 (patch)
treed2e9eacd8c6abe75604f5281a6095206b74f7500
parent49f8bd4a0ff04943ab3e4724576176f421d1b4c6 (diff)
downloadsrc-9927192e4ffb982fcce1e26ae7bc0902d112dc18.tar.gz
src-9927192e4ffb982fcce1e26ae7bc0902d112dc18.zip
Fix a wrong assertion in mandoc by applying OpenBSD
main.c,v 1.170 (florian): Unbreak reading from stdin after recent parse() restructuring. OK schwarze@
Notes
Notes: svn path=/vendor/mdocml/dist/; revision=294260
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3c4ff2acc247..2fc2e1eb3f95 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)