diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-10-16 12:20:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-10-16 12:20:34 +0000 |
commit | 855d59ab582ff06a37b6864586bd5d5aa61018a2 (patch) | |
tree | ec50e0edd6a8458edd410b827c40dbf7d4a7b786 /mdoc_term.c | |
parent | 14297a71223fc5ff079a17f339ddbf603eaca3bf (diff) | |
download | mandoc-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_term.c')
-rw-r--r-- | mdoc_term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 1c71f01e..709fc108 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -584,6 +584,8 @@ print_bvspace(struct termp *p, { const struct mdoc_node *nn; + assert(n); + term_newln(p); if (MDOC_Bd == bl->tok && bl->norm->Bd.comp) |