diff options
| author | 2017-01-29 14:02:19 +0000 | |
|---|---|---|
| committer | 2017-01-29 14:02:19 +0000 | |
| commit | 4614a36918a950368db67bda6f0625c247f88132 (patch) | |
| tree | 26e61bd8225c9388ab4eb50917bf7e5d67e19d2d /usr.bin/mandoc/mdoc_html.c | |
| parent | obvious protection against null pointer, because it's quite possible for cgn (diff) | |
| download | wireguard-openbsd-4614a36918a950368db67bda6f0625c247f88132.tar.xz wireguard-openbsd-4614a36918a950368db67bda6f0625c247f88132.zip | |
eliminate one useless struct and one level of indirection;
no functional change
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
| -rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index f8bd1239bc2..69440dbcb91 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.138 2017/01/28 22:36:17 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.139 2017/01/29 14:02:19 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -347,7 +347,7 @@ print_mdoc_node(MDOC_ARGS) return; child = 1; - t = h->tags.head; + t = h->tag; n->flags &= ~NODE_ENDED; switch (n->type) { @@ -387,7 +387,7 @@ print_mdoc_node(MDOC_ARGS) */ if (h->tblt != NULL) { print_tblclose(h); - t = h->tags.head; + t = h->tag; } assert(h->tblt == NULL); if (mdocs[n->tok].pre && (n->end == ENDBODY_NOT || n->child)) |
