diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-18 11:46:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-18 11:46:44 +0000 |
commit | fe1de5125dc355201c925bca29bbef6047b18278 (patch) | |
tree | 945635190f082520cf3669dd2c7752f1312790b9 | |
parent | d80c47aaf68066e0c2f531aea4e33ef2d8fa2a56 (diff) | |
download | mandoc-fe1de5125dc355201c925bca29bbef6047b18278.tar.gz |
Fixed missing check for open ELINE scope in BLINE macro.
-rw-r--r-- | man_validate.c | 14 |
1 files changed, 8 insertions, 6 deletions
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); } |