From: Todd C. Miller Date: Sat, 10 Feb 2018 16:44:34 +0000 (-0700) Subject: Remove dead store, found by cppcheck. X-Git-Tag: SUDO_1_8_23^2~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2213dc1e36b53ebddab9c809eacd0e7305bfae9;p=sudo Remove dead store, found by cppcheck. --- diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index 251469790..475ca25b1 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -164,8 +164,7 @@ done: static bool io_mkdtemp(char *path) { - bool ok = true; - bool uid_changed = false; + bool ok, uid_changed = false; debug_decl(io_mkdtemp, SUDOERS_DEBUG_UTIL) ok = sudo_mkdir_parents(path, iolog_uid, iolog_gid, iolog_dirmode, true);