From: Todd C. Miller Date: Mon, 17 Jul 2017 20:13:08 +0000 (-0600) Subject: Initialize ch in getsize_cb() in case we are called with the wrong X-Git-Tag: SUDO_1_8_21^2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6509482bfdf4dcdd31b85c7879a955ef4200f9d2;p=sudo Initialize ch in getsize_cb() in case we are called with the wrong initial state. --- diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index a6477192b..052bee39e 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -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 (;;) {