summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index adba1204..18946b52 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -2280,19 +2280,9 @@ post_dt(POST_ARGS)
mdoc->meta.msec = mandoc_strdup(nn->string);
}
- if (NULL == (nn = nn->next))
- goto out;
-
- /*
- * If the third argument is a volume name, format is,
- * otherwise assume it's an architecture.
- */
+ /* Handle an optional architecture */
- cp = mdoc_a2vol(nn->string);
- if (cp) {
- free(mdoc->meta.vol);
- mdoc->meta.vol = mandoc_strdup(cp);
- } else {
+ if ((nn = nn->next) != NULL) {
for (p = nn->string; *p; p++)
*p = tolower((unsigned char)*p);
mdoc->meta.arch = mandoc_strdup(nn->string);