]> granicus.if.org Git - sudo/commitdiff
Remove dead store, found by cppcheck.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 10 Feb 2018 16:44:34 +0000 (09:44 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 10 Feb 2018 16:44:34 +0000 (09:44 -0700)
plugins/sudoers/iolog.c

index 251469790dc4df3bc4412cc3a093a7bdcc5d0b5f..475ca25b141250b426cbf79b25f29f585f135398 100644 (file)
@@ -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);