From fe1de5125dc355201c925bca29bbef6047b18278 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 18 Aug 2009 11:46:44 +0000 Subject: Fixed missing check for open ELINE scope in BLINE macro. --- man_validate.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'man_validate.c') diff --git a/man_validate.c b/man_validate.c index 72a2d154..e02df1f9 100644 --- a/man_validate.c +++ b/man_validate.c @@ -289,9 +289,9 @@ static int check_eline(CHKARGS) { - if ( ! (MAN_ELINE & m->flags)) - return(1); - return(man_nerr(m, n, WLNSCOPE)); + if (MAN_ELINE & m->flags) + return(man_nerr(m, n, WLNSCOPE)); + return(1); } @@ -299,8 +299,10 @@ static int check_bline(CHKARGS) { - if ( ! (MAN_BLINE & m->flags)) - return(1); - return(man_nerr(m, n, WLNSCOPE)); + if (MAN_BLINE & m->flags) + return(man_nerr(m, n, WLNSCOPE)); + if (MAN_ELINE & m->flags) + return(man_nerr(m, n, WLNSCOPE)); + return(1); } -- cgit