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));
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to