Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2016 08:41:03 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r294260 - vendor/mdocml/dist
Message-ID:  <201601180841.u0I8f3Mi079597@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Jan 18 08:41:03 2016
New Revision: 294260
URL: https://svnweb.freebsd.org/changeset/base/294260

Log:
  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:
  vendor/mdocml/dist/main.c

Modified: vendor/mdocml/dist/main.c
==============================================================================
--- vendor/mdocml/dist/main.c	Mon Jan 18 06:59:00 2016	(r294259)
+++ vendor/mdocml/dist/main.c	Mon Jan 18 08:41:03 2016	(r294260)
@@ -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?201601180841.u0I8f3Mi079597>