summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 14:44:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-26 14:44:41 +0000
commitf9a4c0556641ef6c4137e3b06cf137bb9f8e7dab (patch)
tree038178247a2c74ef393109e33d786b51aa86d493 /man.c
parent080c584ff1e9cef269b4c220a099f4fb842e538c (diff)
downloadmandoc-f9a4c0556641ef6c4137e3b06cf137bb9f8e7dab.tar.gz
mandoc-f9a4c0556641ef6c4137e3b06cf137bb9f8e7dab.tar.zst
mandoc-f9a4c0556641ef6c4137e3b06cf137bb9f8e7dab.zip
Fixed after-NLINE-error assertion.
Scanned over all manuals with valgrind. Version up.
Diffstat (limited to 'man.c')
-rw-r--r--man.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/man.c b/man.c
index eab8e400..f0f5b83c 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.11 2009/03/26 14:38:11 kristaps Exp $ */
+/* $Id: man.c,v 1.12 2009/03/26 14:44:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -343,7 +343,7 @@ man_pmacro(struct man *m, int ln, char *buf)
if ( ! man_vwarn(m, ln, ppos,
"ill-formed macro: %s", mac))
goto err;
- goto out;
+ return(1);
}
if (MAN_MAX == (c = man_hash_find(m->htab, mac))) {
@@ -355,7 +355,7 @@ man_pmacro(struct man *m, int ln, char *buf)
if ( ! man_vwarn(m, ln, ppos,
"unknown macro: %s", mac))
goto err;
- goto out;
+ return(1);
}
/* The macro is sane. Jump to the next word. */