From 942a78c97b19b539fd3a3930bb50cdede29cd3a7 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 14 May 2010 15:26:39 +0000 Subject: "Invalid standard argument should be a warning. Just leak it into the output." (patch by Joerg Sonnenberger) --- mdoc_action.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mdoc_action.c') 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); } -- cgit