=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/roff.c,v retrieving revision 1.99 retrieving revision 1.100 diff -u -r1.99 -r1.100 --- src/usr.bin/mandoc/roff.c 2014/09/06 22:38:35 1.99 +++ src/usr.bin/mandoc/roff.c 2014/09/06 23:24:27 1.100 @@ -1,4 +1,4 @@ -/* $OpenBSD: roff.c,v 1.99 2014/09/06 22:38:35 schwarze Exp $ */ +/* $OpenBSD: roff.c,v 1.100 2014/09/06 23:24:27 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -756,6 +756,15 @@ return(tbl_read(r->tbl, ln, *bufp, pos)); return(roff_parsetext(bufp, szp, pos, offs)); } + + /* Skip empty request lines. */ + + if ((*bufp)[pos] == '"') { + mandoc_msg(MANDOCERR_COMMENT_BAD, r->parse, + ln, pos, NULL); + return(ROFF_IGN); + } else if ((*bufp)[pos] == '\0') + return(ROFF_IGN); /* * If a scope is open, go to the child handler for that macro,