aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.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
commit5a614b48d4e480e6aecbb9f6257de42dee05e3ae (patch)
treec5f20936909655fb1afd3ac71a4670c9b4d1fb91 /mdoc_term.c
parent69a8c4eeef220e21f890c4afe5039fe26bb0249d (diff)
downloadmandoc-5a614b48d4e480e6aecbb9f6257de42dee05e3ae.tar.gz
mandoc-5a614b48d4e480e6aecbb9f6257de42dee05e3ae.tar.zst
mandoc-5a614b48d4e480e6aecbb9f6257de42dee05e3ae.zip
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 5f55d648..a6f279db 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.235 2011/09/20 09:02:23 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.236 2011/10/16 12:20:34 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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)