aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitd3e623b20e91ba55cfffcf4118ec1a7e54c0ce6d (patch)
tree55446b33e4b33c7a8a389dbdb0e76f17343848e1 /mdoc_action.c
parentdb3e26b2ee2a26808b75a9102f41c1dd1074bc09 (diff)
downloadmandoc-d3e623b20e91ba55cfffcf4118ec1a7e54c0ce6d.tar.gz
mandoc-d3e623b20e91ba55cfffcf4118ec1a7e54c0ce6d.tar.zst
mandoc-d3e623b20e91ba55cfffcf4118ec1a7e54c0ce6d.zip
"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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index f84542d4..49a87052 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.55 2010/05/12 08:41:17 kristaps Exp $ */
+/* $Id: mdoc_action.c,v 1.56 2010/05/14 15:26:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
}