summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-04-08 11:54:14 +0000
committerschwarze <schwarze@openbsd.org>2020-04-08 11:54:14 +0000
commitc220f9cfaf99b0c261697e8f77a2b74041fb810c (patch)
tree937b241dcc578e290543281fb6a6eb7e9bb2fa14 /usr.bin/mandoc/mdoc_validate.c
parentAdd glass console support. (diff)
downloadwireguard-openbsd-c220f9cfaf99b0c261697e8f77a2b74041fb810c.tar.xz
wireguard-openbsd-c220f9cfaf99b0c261697e8f77a2b74041fb810c.zip
Use a separate node->tag attribute rather than abusing the node->string
attribute for the purpose. No functional change intended. The purpose is to make it possible to later attach tags to text nodes.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index b50a92a811b..f42751c5d67 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_validate.c,v 1.298 2020/04/06 09:55:49 schwarze Exp $ */
+/* $OpenBSD: mdoc_validate.c,v 1.299 2020/04/08 11:54:14 schwarze Exp $ */
/*
* Copyright (c) 2010-2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -2197,8 +2197,8 @@ post_hyph(POST_ARGS)
if (*cp == '-' &&
isalpha((unsigned char)cp[-1]) &&
isalpha((unsigned char)cp[1])) {
- if (n->string == NULL && n->flags & NODE_ID)
- n->string = mandoc_strdup(nch->string);
+ if (n->tag == NULL && n->flags & NODE_ID)
+ n->tag = mandoc_strdup(nch->string);
*cp = ASCII_HYPH;
}
}