summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-18 11:46:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-18 11:46:44 +0000
commitfe1de5125dc355201c925bca29bbef6047b18278 (patch)
tree945635190f082520cf3669dd2c7752f1312790b9 /man_validate.c
parentd80c47aaf68066e0c2f531aea4e33ef2d8fa2a56 (diff)
downloadmandoc-fe1de5125dc355201c925bca29bbef6047b18278.tar.gz
Fixed missing check for open ELINE scope in BLINE macro.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c14
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);
}