diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-10-12 21:25:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-10-12 21:25:37 +0000 |
commit | 126314c6f1520611ccbfbaa73e06ab2636b2fede (patch) | |
tree | dbc87ea1e49fedda5afe278a7278b6413dce598a /usr.bin/mandoc/mdoc_validate.c | |
parent | 1f32e8ca42b6ef80fdab2ea65f37968d4826f410 (diff) |
Delete an assignment that is unconditionally overwritten two lines later;
found by Svyatoslav Mishyn <juef at openmailbox dot org>
with the clang static analyzer.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_validate.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |