=================================================================== RCS file: /cvs/mandoc/Attic/mdoc_action.c,v retrieving revision 1.54 retrieving revision 1.56 diff -u -p -r1.54 -r1.56 --- mandoc/Attic/mdoc_action.c 2010/05/08 07:30:19 1.54 +++ mandoc/Attic/mdoc_action.c 2010/05/14 15:26:39 1.56 @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.54 2010/05/08 07:30:19 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.56 2010/05/14 15:26:39 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -366,9 +366,10 @@ post_st(POST_ARGS) assert(MDOC_TEXT == n->child->type); p = mdoc_a2st(n->child->string); - assert(p); - free(n->child->string); - n->child->string = mandoc_strdup(p); + if (p != NULL) { + free(n->child->string); + n->child->string = mandoc_strdup(p); + } return(1); } @@ -419,7 +420,7 @@ post_sh(POST_ARGS) if ( ! concat(m, buf, n->child, BUFSIZ)) return(0); - sec = mdoc_atosec(buf); + sec = mdoc_str2sec(buf); /* * The first section should always make us move into a non-new * state.