summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-06 14:24:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-06 14:24:49 +0000
commit7024ee7ca35a8033dee9ec0936cd2f3e0251aca2 (patch)
treed98189a2f8785e0f2217c5b3a2a0a6abe57112d1 /action.c
parentbc942b21e65675353944cc575b047c6a80080195 (diff)
downloadmandoc-7024ee7ca35a8033dee9ec0936cd2f3e0251aca2.tar.gz
Documented the strings script.
Diffstat (limited to 'action.c')
-rw-r--r--action.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/action.c b/action.c
index c2404e1b..77cb5b8b 100644
--- a/action.c
+++ b/action.c
@@ -535,11 +535,13 @@ post_ar(struct mdoc *mdoc)
n = mdoc->last;
mdoc->next = MDOC_NEXT_CHILD;
- mdoc_word_alloc(mdoc, mdoc->last->line,
- mdoc->last->pos, "file");
+ if ( ! mdoc_word_alloc(mdoc, mdoc->last->line,
+ mdoc->last->pos, "file"))
+ return(0);
mdoc->next = MDOC_NEXT_SIBLING;
- mdoc_word_alloc(mdoc, mdoc->last->line,
- mdoc->last->pos, "...");
+ if ( ! mdoc_word_alloc(mdoc, mdoc->last->line,
+ mdoc->last->pos, "..."))
+ return(0);
mdoc->last = n;
mdoc->next = MDOC_NEXT_SIBLING;