From e2213dc1e36b53ebddab9c809eacd0e7305bfae9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 10 Feb 2018 09:44:34 -0700 Subject: [PATCH] Remove dead store, found by cppcheck. --- plugins/sudoers/iolog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.50.1