From 0429a1cd8de820a09ed374414c58f74ab1483317 Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 18 Jan 2016 08:52:09 +0000 Subject: 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@ --- contrib/mdocml/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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) -- cgit v1.1