diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-04 21:41:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-04 21:41:29 +0000 |
commit | 6a9c863d13a717de73b674d348f838664b76bdab (patch) | |
tree | fc0dc267c898d5c5cf966fef2c0ed6621ca8ee0f /mdoc_man.c | |
parent | aa7b97b7b53276fe80370d81c08c6f20e4103148 (diff) | |
download | mandoc-6a9c863d13a717de73b674d348f838664b76bdab.tar.gz mandoc-6a9c863d13a717de73b674d348f838664b76bdab.tar.zst mandoc-6a9c863d13a717de73b674d348f838664b76bdab.zip |
Remove a redundant condition in .%T handling, no functional change.
Found by jsg@ with scan-build.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r-- | mdoc_man.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.104 2017/02/17 19:15:41 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.105 2017/03/04 21:41:29 schwarze Exp $ */ /* * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> * @@ -715,8 +715,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 @@ -728,8 +727,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 |