aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 15:54:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 15:54:39 +0000
commit23ae8ccb1b52134baac639bb4490d75fd11c858e (patch)
tree4072aac4dd10080d6a9f7726e2509ab0047eafcf /man.c
parentfcd36c026ba83fae0d9c59ba6543c993fac6c187 (diff)
downloadmandoc-23ae8ccb1b52134baac639bb4490d75fd11c858e.tar.gz
mandoc-23ae8ccb1b52134baac639bb4490d75fd11c858e.tar.zst
mandoc-23ae8ccb1b52134baac639bb4490d75fd11c858e.zip
Removed restriction on integer manual sections in -man.
Diffstat (limited to 'man.c')
-rw-r--r--man.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/man.c b/man.c
index 28c00c90..8777a39e 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.67 2010/05/15 06:48:13 kristaps Exp $ */
+/* $Id: man.c,v 1.68 2010/05/15 15:54:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -32,7 +32,6 @@
const char *const __man_merrnames[WERRMAX] = {
"invalid character", /* WNPRINT */
- "invalid manual section", /* WMSEC */
"invalid date format", /* WDATE */
"scope of prior line violated", /* WLNSCOPE */
"over-zealous prior line scope violation", /* WLNSCOPE2 */
@@ -174,6 +173,8 @@ man_free1(struct man *man)
free(man->meta.source);
if (man->meta.vol)
free(man->meta.vol);
+ if (man->meta.msec)
+ free(man->meta.msec);
}