summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-10-16 12:20:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-10-16 12:20:34 +0000
commit855d59ab582ff06a37b6864586bd5d5aa61018a2 (patch)
treeec50e0edd6a8458edd410b827c40dbf7d4a7b786 /mdoc_macro.c
parent14297a71223fc5ff079a17f339ddbf603eaca3bf (diff)
downloadmandoc-855d59ab582ff06a37b6864586bd5d5aa61018a2.tar.gz
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@.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c5
1 files changed, 1 insertions, 4 deletions
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. */