summaryrefslogtreecommitdiffstats
path: root/contrib/mdocml
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2016-01-18 08:52:09 +0000
committerdelphij <delphij@FreeBSD.org>2016-01-18 08:52:09 +0000
commit0429a1cd8de820a09ed374414c58f74ab1483317 (patch)
tree6ae146d363287432b20b0d54fb511fb1e1876f12 /contrib/mdocml
parent834f0a67dd108394d4ac90e03c69d978f1eb88ef (diff)
downloadFreeBSD-src-0429a1cd8de820a09ed374414c58f74ab1483317.zip
FreeBSD-src-0429a1cd8de820a09ed374414c58f74ab1483317.tar.gz
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@
Diffstat (limited to 'contrib/mdocml')
-rw-r--r--contrib/mdocml/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mdocml/main.c b/contrib/mdocml/main.c
index 3c4ff2a..2fc2e1e 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)
OpenPOWER on IntegriCloud