X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/236dae9fb3183b9c1d8bc6f77614797d65800987..a454003ad67073a51037d0dc5dcbf5b3cced1b8e:/action.c?ds=inline diff --git a/action.c b/action.c index 17aa05f5..d5605a38 100644 --- a/action.c +++ b/action.c @@ -1,4 +1,4 @@ -/* $Id: action.c,v 1.31 2009/03/06 14:13:47 kristaps Exp $ */ +/* $Id: action.c,v 1.32 2009/03/06 14:24:49 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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;