diff options
author | Xin LI <delphij@FreeBSD.org> | 2016-01-18 08:52:09 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2016-01-18 08:52:09 +0000 |
commit | 912358463447d8ead26f9790f6b76ac1bdc74a97 (patch) | |
tree | 6ae146d363287432b20b0d54fb511fb1e1876f12 | |
parent | e78e1b4ddcd0e24040436ad1cfc356f51f99bc76 (diff) | |
parent | 9927192e4ffb982fcce1e26ae7bc0902d112dc18 (diff) | |
download | src-912358463447d8ead26f9790f6b76ac1bdc74a97.tar.gz src-912358463447d8ead26f9790f6b76ac1bdc74a97.zip |
MFV r294260:
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=/head/; revision=294261
-rw-r--r-- | contrib/mdocml/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mdocml/main.c b/contrib/mdocml/main.c index 3c4ff2acc247..2fc2e1eb3f95 100644 --- a/contrib/mdocml/main.c +++ b/contrib/mdocml/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) |