=================================================================== RCS file: /cvs/mandoc/man_term.c,v retrieving revision 1.225 retrieving revision 1.226 diff -u -p -r1.225 -r1.226 --- mandoc/man_term.c 2018/12/31 11:01:37 1.225 +++ mandoc/man_term.c 2019/01/05 00:36:50 1.226 @@ -1,7 +1,7 @@ -/* $Id: man_term.c,v 1.225 2018/12/31 11:01:37 schwarze Exp $ */ +/* $Id: man_term.c,v 1.226 2019/01/05 00:36:50 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons - * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze + * Copyright (c) 2010-2015, 2017-2019 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -419,7 +419,10 @@ pre_HP(DECL_ARGS) return 0; } - if ((n->flags & NODE_NOFILL) == 0) { + if (n->child == NULL) + return 0; + + if ((n->child->flags & NODE_NOFILL) == 0) { p->flags |= TERMP_NOBREAK | TERMP_BRIND; p->trailspace = 2; }