=================================================================== RCS file: /cvs/mandoc/mdoc_macro.c,v retrieving revision 1.199 retrieving revision 1.201 diff -u -p -r1.199 -r1.201 --- mandoc/mdoc_macro.c 2015/05/01 16:02:47 1.199 +++ mandoc/mdoc_macro.c 2015/09/26 00:54:04 1.201 @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.199 2015/05/01 16:02:47 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.201 2015/09/26 00:54:04 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2012-2015 Ingo Schwarze @@ -263,7 +263,6 @@ rew_last(struct roff_man *mdoc, const struct roff_node if (to->flags & MDOC_VALID) return; - mdoc->next = ROFF_NEXT_SIBLING; while (mdoc->last != to) { /* * Save the parent here, because we may delete the @@ -276,6 +275,7 @@ rew_last(struct roff_man *mdoc, const struct roff_node mdoc->last = np; assert(mdoc->last); } + mdoc->next = ROFF_NEXT_SIBLING; mdoc_valid_post(mdoc); } @@ -363,7 +363,6 @@ rew_alt(int tok) default: return(tok); } - /* NOTREACHED */ } static void