From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id rBQJ24us027864 for ; Thu, 26 Dec 2013 14:02:04 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id rBQJ24fE021227; Thu, 26 Dec 2013 14:02:04 -0500 (EST) Date: Thu, 26 Dec 2013 14:02:04 -0500 (EST) Message-Id: <201312261902.rBQJ24fE021227@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Stop parsing man(7) input when we found all we were searching X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Stop parsing man(7) input when we found all we were searching for, such that we don't trigger an assertion on a duplicate NAME section. Modified Files: -------------- mdocml: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v retrieving revision 1.76 retrieving revision 1.77 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.76 -r1.77 --- mandocdb.c +++ mandocdb.c @@ -1366,8 +1366,11 @@ parse_man(struct of *of, const struct ma } } - 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 -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv