diff options
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index c96a9ead..2b6a8c73 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -291,9 +291,10 @@ static void print_mdoc_nodelist(DECL_ARGS) { - print_mdoc_node(p, pair, meta, n); - if (n->next) - print_mdoc_nodelist(p, pair, meta, n->next); + while (n != NULL) { + print_mdoc_node(p, pair, meta, n); + n = n->next; + } } static void |