Date: Mon, 18 Jan 2016 08:52:10 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294261 - head/contrib/mdocml Message-ID: <201601180852.u0I8qAO3085179@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Jan 18 08:52:09 2016 New Revision: 294261 URL: https://svnweb.freebsd.org/changeset/base/294261 Log: 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@ Modified: head/contrib/mdocml/main.c Directory Properties: head/contrib/mdocml/ (props changed) Modified: head/contrib/mdocml/main.c ============================================================================== --- head/contrib/mdocml/main.c Mon Jan 18 08:41:03 2016 (r294260) +++ head/contrib/mdocml/main.c Mon Jan 18 08:52:09 2016 (r294261) @@ -720,7 +720,7 @@ parse(struct curparse *curp, int fd, con /* 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601180852.u0I8qAO3085179>