From 4b2845466d2483af272a570fa0404c95a352c52d Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 12 Oct 2015 21:26:02 +0000 Subject: Delete an assignment that is unconditionally overwritten two lines later; found by Svyatoslav Mishyn with the clang static analyzer. --- mdoc_validate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mdoc_validate.c b/mdoc_validate.c index d40a7c18..d148ee3f 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1837,7 +1837,6 @@ post_sh_head(POST_ARGS) */ secname = NULL; - sec = SEC_CUSTOM; deroff(&secname, mdoc->last); sec = NULL == secname ? SEC_CUSTOM : a2sec(secname); -- cgit