diff options
-rw-r--r-- | mdoc_action.c | 7 | ||||
-rw-r--r-- | mdoc_validate.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index 0883f7f1..4739e0b6 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -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); } diff --git a/mdoc_validate.c b/mdoc_validate.c index 8d9e2b0f..ad33b1f4 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1162,7 +1162,7 @@ post_st(POST_ARGS) if (mdoc_a2st(mdoc->last->child->string)) return(1); - return(mdoc_nerr(mdoc, mdoc->last, EBADSTAND)); + return(mdoc_nwarn(mdoc, mdoc->last, EBADSTAND)); } |