Date: Tue, 18 Oct 2016 13:38:00 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r307564 - head/contrib/mdocml Message-ID: <201610181338.u9IDc0e1001801@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Tue Oct 18 13:37:59 2016 New Revision: 307564 URL: https://svnweb.freebsd.org/changeset/base/307564 Log: makewhatis: avoid skipping another page after one with no mlinks Submitted by: Ingo Schwarze MFC after: 3 weeks MFC with: r307003 Modified: head/contrib/mdocml/mandocdb.c Modified: head/contrib/mdocml/mandocdb.c ============================================================================== --- head/contrib/mdocml/mandocdb.c Tue Oct 18 13:29:30 2016 (r307563) +++ head/contrib/mdocml/mandocdb.c Tue Oct 18 13:37:59 2016 (r307564) @@ -1146,10 +1146,8 @@ mpages_merge(struct mparse *mp) for (mpage = mpage_head; mpage != NULL; mpage = mpage->next) { mlinks_undupe(mpage); - if ((mlink = mpage->mlinks) == NULL) { - mpage = mpage->next; + if ((mlink = mpage->mlinks) == NULL) continue; - } name_mask = NAME_MASK; mandoc_ohash_init(&names, 4, offsetof(struct str, key));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610181338.u9IDc0e1001801>