From: schwarze Date: Mon, 12 Oct 2015 21:25:36 +0000 (+0000) Subject: Delete an assignment that is unconditionally overwritten two lines later; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a79964c70954968e2c5a2ac05fb50ea9bfb5f196;p=openbsd Delete an assignment that is unconditionally overwritten two lines later; found by Svyatoslav Mishyn with the clang static analyzer. --- diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index 99dc15fa7bf..5a56689f9d2 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_validate.c,v 1.211 2015/10/12 00:07:27 schwarze Exp $ */ +/* $OpenBSD: mdoc_validate.c,v 1.212 2015/10/12 21:25:36 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -1828,7 +1828,6 @@ post_sh_head(POST_ARGS) */ secname = NULL; - sec = SEC_CUSTOM; deroff(&secname, mdoc->last); sec = NULL == secname ? SEC_CUSTOM : a2sec(secname);