=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/main.c,v retrieving revision 1.169 retrieving revision 1.170 diff -u -r1.169 -r1.170 --- src/usr.bin/mandoc/main.c 2016/01/08 02:53:09 1.169 +++ src/usr.bin/mandoc/main.c 2016/01/16 21:56:32 1.170 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.169 2016/01/08 02:53:09 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.170 2016/01/16 21:56:32 florian Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze @@ -675,7 +675,7 @@ /* 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)