From 63edf6044520b30f6e269cbb1e4a63352f05ac0f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 31 Dec 2013 18:07:42 +0000 Subject: remove assignments that will be overwritten right afterwards, and remove pointless local variables; found in a clang output from Ulrich Spoerlein --- man_validate.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'man_validate.c') diff --git a/man_validate.c b/man_validate.c index da2e557e..479a05f1 100644 --- a/man_validate.c +++ b/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.86 2013/10/17 20:54:58 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.87 2013/12/31 18:07:42 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013 Ingo Schwarze @@ -395,7 +395,6 @@ static int post_TH(CHKARGS) { const char *p; - int line, pos; free(man->meta.title); free(man->meta.vol); @@ -403,8 +402,6 @@ post_TH(CHKARGS) free(man->meta.msec); free(man->meta.date); - line = n->line; - pos = n->pos; man->meta.title = man->meta.vol = man->meta.date = man->meta.msec = man->meta.source = NULL; @@ -438,9 +435,8 @@ post_TH(CHKARGS) if (n) n = n->next; if (n && n->string && '\0' != n->string[0]) { - pos = n->pos; man->meta.date = mandoc_normdate - (man->parse, n->string, line, pos); + (man->parse, n->string, n->line, n->pos); } else man->meta.date = mandoc_strdup(""); -- cgit v1.2.3-56-ge451