From a454003ad67073a51037d0dc5dcbf5b3cced1b8e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 6 Mar 2009 14:24:49 +0000 Subject: Documented the strings script. --- action.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'action.c') 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; -- cgit v1.2.3