From 5a614b48d4e480e6aecbb9f6257de42dee05e3ae 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_term.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdoc_term.c') 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 * Copyright (c) 2010 Ingo Schwarze @@ -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) -- cgit v1.2.3