X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/924c4755ac64b780903344b188653f513990a771..f0aaaf5ca33c0d2fda4d44a60eeb07936efdfe8a:/main.c diff --git a/main.c b/main.c index 3c4ff2ac..35188e20 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.262 2016/01/08 02:53:13 schwarze Exp $ */ +/* $Id: main.c,v 1.263 2016/01/16 22:30:33 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze @@ -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)