svn commit: r294260 - vendor/mdocml/dist

Xin LI delphij at FreeBSD.org
Mon Jan 18 08:41:05 UTC 2016


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)


More information about the svn-src-all mailing list