summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
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;