=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.219 retrieving revision 1.220 diff -u -p -r1.219 -r1.220 --- mandoc/mdoc_html.c 2015/01/23 14:21:01 1.219 +++ mandoc/mdoc_html.c 2015/01/30 22:04:44 1.220 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.219 2015/01/23 14:21:01 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.220 2015/01/30 22:04:44 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -371,9 +371,10 @@ static void print_mdoc_nodelist(MDOC_ARGS) { - print_mdoc_node(meta, n, h); - if (n->next) - print_mdoc_nodelist(meta, n->next, h); + while (n != NULL) { + print_mdoc_node(meta, n, h); + n = n->next; + } } static void