=================================================================== RCS file: /cvs/mandoc/Attic/mdoc_action.c,v retrieving revision 1.77 retrieving revision 1.78 diff -u -p -r1.77 -r1.78 --- mandoc/Attic/mdoc_action.c 2010/07/26 13:45:49 1.77 +++ mandoc/Attic/mdoc_action.c 2010/07/30 17:14:09 1.78 @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.77 2010/07/26 13:45:49 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.78 2010/07/30 17:14:09 joerg Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -659,6 +659,13 @@ post_bl_tagwidth(POST_ARGS) assert(MDOC_BLOCK == nn->type); nn = nn->head->child; + + if (nn == NULL) { + /* No -width for .Bl and first .It is emtpy */ + if ( ! mdoc_nmsg(m, n, MANDOCERR_NOWIDTHARG)) + return(0); + break; + } if (MDOC_TEXT == nn->type) { sz = strlen(nn->string) + 1;