=================================================================== RCS file: /cvs/mandoc/mandocdb.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -p -r1.76 -r1.77 --- mandoc/mandocdb.c 2013/10/27 17:01:18 1.76 +++ mandoc/mandocdb.c 2013/12/26 19:02:04 1.77 @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.76 2013/10/27 17:01:18 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.77 2013/12/26 19:02:04 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013 Ingo Schwarze @@ -1366,8 +1366,11 @@ parse_man(struct of *of, const struct man_node *n) } } - for (n = n->child; n; n = n->next) + for (n = n->child; n; n = n->next) { + if (NULL != of->desc) + break; parse_man(of, n); + } } static void