source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Stop parsing man(7) input when we found all we were searching
@ 2013-12-26 19:02 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-12-26 19:02 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-26 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-26 19:02 mdocml: Stop parsing man(7) input when we found all we were searching schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).