From 9927192e4ffb982fcce1e26ae7bc0902d112dc18 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 18 Jan 2016 08:41:03 +0000 Subject: [PATCH] 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@ --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)