From: Todd C. Miller Date: Fri, 30 Mar 2012 18:59:27 +0000 (-0400) Subject: Don't need zero_bytes() after ecalloc() X-Git-Tag: SUDO_1_8_5~1^2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e6d00ed125f44faf61b7a68718a902442a8f6f4;p=sudo Don't need zero_bytes() after ecalloc() --- diff --git a/src/exec_pty.c b/src/exec_pty.c index f4a4804e6..93cc9b0d2 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -406,7 +406,6 @@ io_buf_new(int rfd, int wfd, bool (*action)(const char *, unsigned int), debug_decl(io_buf_new, SUDO_DEBUG_EXEC); iob = ecalloc(1, sizeof(*iob)); - zero_bytes(iob, sizeof(*iob)); iob->rfd = rfd; iob->wfd = wfd; iob->action = action;