diff options
author | 2017-03-04 21:41:13 +0000 | |
---|---|---|
committer | 2017-03-04 21:41:13 +0000 | |
commit | 6b7d675a1d290dbf2d2e35b01f02b71ffe6c8132 (patch) | |
tree | 27b58de83a08010794423f570c9ebaf02f0f648b /usr.bin/mandoc/mdoc_man.c | |
parent | fix date and mention installurl way of pkg_add (diff) | |
download | wireguard-openbsd-6b7d675a1d290dbf2d2e35b01f02b71ffe6c8132.tar.xz wireguard-openbsd-6b7d675a1d290dbf2d2e35b01f02b71ffe6c8132.zip |
Remove a redundant condition in .%T handling, no functional change.
Found by jsg@ with scan-build.
Diffstat (limited to 'usr.bin/mandoc/mdoc_man.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index ca1f8cadabf..36f09ae60fd 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_man.c,v 1.102 2017/02/17 19:14:39 schwarze Exp $ */ +/* $OpenBSD: mdoc_man.c,v 1.103 2017/03/04 21:41:13 schwarze Exp $ */ /* * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> * @@ -713,8 +713,7 @@ static int pre__t(DECL_ARGS) { - if (n->parent && MDOC_Rs == n->parent->tok && - n->parent->norm->Rs.quote_T) { + if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T) { print_word("\\(lq"); outflags &= ~MMAN_spc; } else @@ -726,8 +725,7 @@ static void post__t(DECL_ARGS) { - if (n->parent && MDOC_Rs == n->parent->tok && - n->parent->norm->Rs.quote_T) { + if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T) { outflags &= ~MMAN_spc; print_word("\\(rq"); } else |