summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-12 21:26:02 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-12 21:26:02 +0000
commit4b2845466d2483af272a570fa0404c95a352c52d (patch)
treec71a3d07623e325b7d6de9f6319046fb6efb7f53
parent4e2dd0d6ab90aa2acc262356f9d385202101b36d (diff)
downloadmandoc-4b2845466d2483af272a570fa0404c95a352c52d.tar.gz
Delete an assignment that is unconditionally overwritten two lines later;
found by Svyatoslav Mishyn <juef at openmailbox dot org> with the clang static analyzer.
-rw-r--r--mdoc_validate.c1
1 files changed, 0 insertions, 1 deletions
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);