From 855d59ab582ff06a37b6864586bd5d5aa61018a2 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 16 Oct 2011 12:20:34 +0000 Subject: Remove a bunch of useless assignments, and assert that print_bvspace cannot be called on NULL pointers. No change in behaviour, none of these were bugs, but the code becomes easier to understand. Based on a clang report posted by joerg@; ok kristaps@. --- mdoc_macro.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mdoc_macro.c') diff --git a/mdoc_macro.c b/mdoc_macro.c index 2164f021..024af0c9 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1443,18 +1443,15 @@ blk_part_exp(MACRO_PROT_ARGS) /* Clean-up to leave in a consistent state. */ - if (NULL == head) { + if (NULL == head) if ( ! mdoc_head_alloc(m, line, ppos, tok)) return(0); - head = m->last; - } if (NULL == body) { if ( ! rew_sub(MDOC_HEAD, m, tok, line, ppos)) return(0); if ( ! mdoc_body_alloc(m, line, ppos, tok)) return(0); - body = m->last; } /* Standard appending of delimiters. */ -- cgit