summaryrefslogtreecommitdiffstats
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-14 15:26:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-14 15:26:39 +0000
commit942a78c97b19b539fd3a3930bb50cdede29cd3a7 (patch)
tree0b24fc90574dce013f8bfed3702fd2eddba36b75 /mdoc_action.c
parent67121f59f6d5e34bf9fb53f1498aba0339aa1657 (diff)
downloadmandoc-942a78c97b19b539fd3a3930bb50cdede29cd3a7.tar.gz
"Invalid standard argument should be a warning. Just leak it into the
output." (patch by Joerg Sonnenberger)
Diffstat (limited to 'mdoc_action.c')
-rw-r--r--mdoc_action.c7
1 files changed, 4 insertions, 3 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);
}