diff options
author | 2015-10-12 21:25:36 +0000 | |
---|---|---|
committer | 2015-10-12 21:25:36 +0000 | |
commit | a79964c70954968e2c5a2ac05fb50ea9bfb5f196 (patch) | |
tree | 6b1563abf9ebc30a481160fe6bd3a907d632a623 | |
parent | Garbage collect an unused variable, no functional change; (diff) | |
download | wireguard-openbsd-a79964c70954968e2c5a2ac05fb50ea9bfb5f196.tar.xz wireguard-openbsd-a79964c70954968e2c5a2ac05fb50ea9bfb5f196.zip |
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-- | 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); |