From fd975ee52323b5a37569bba943c722004161f5ec Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 18 May 2013 17:08:43 +0000 Subject: Remove the variable sz because it's invariantly == 0, along with the dead code testing whether it's positive. Reported by Ulrich Spoerlein , found by Coverity Scan CID 975717. While here, remove the now unused **params array as well, which Coverity apparently missed, at least it wasn't reported... --- tree.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tree.c') diff --git a/tree.c b/tree.c index 1430c737..dccbe37f 100644 --- a/tree.c +++ b/tree.c @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.47 2011/09/18 14:14:15 schwarze Exp $ */ +/* $Id: tree.c,v 1.48 2013/05/18 17:08:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011 Kristaps Dzonsons * @@ -58,13 +58,11 @@ print_mdoc(const struct mdoc_node *n, int indent) { const char *p, *t; int i, j; - size_t argc, sz; - char **params; + size_t argc; struct mdoc_argv *argv; argv = NULL; - argc = sz = 0; - params = NULL; + argc = 0; t = p = NULL; switch (n->type) { @@ -162,9 +160,6 @@ print_mdoc(const struct mdoc_node *n, int indent) printf(" ]"); } - for (i = 0; i < (int)sz; i++) - printf(" [%s]", params[i]); - printf(" %d:%d\n", n->line, n->pos); } -- cgit v1.2.3-56-ge451