]> granicus.if.org Git - sudo/commitdiff
Initialize ch in getsize_cb() in case we are called with the wrong
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 20:13:08 +0000 (14:13 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Jul 2017 20:13:08 +0000 (14:13 -0600)
initial state.

plugins/sudoers/sudoreplay.c

index a6477192b319f5fccbedf7c8e02f96a9b2f4b465..052bee39e845f87ed3d99af821b1f875726c719c 100644 (file)
@@ -454,7 +454,7 @@ static void
 getsize_cb(int fd, int what, void *v)
 {
     struct getsize_closure *gc = v;
-    unsigned char ch;
+    unsigned char ch = '\0';
     debug_decl(getsize_cb, SUDO_DEBUG_UTIL)
 
     for (;;) {