summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index fe3ca594..ec748c2d 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -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