From: Todd C. Miller Date: Wed, 23 May 2012 17:07:00 +0000 (-0400) Subject: Don't need zero_bytes() after ecalloc() X-Git-Tag: SUDO_1_7_10~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=766f5c29f3b6604f079538971f3325d040d4c5b8;p=sudo Don't need zero_bytes() after ecalloc() --HG-- branch : 1.7 --- diff --git a/exec_pty.c b/exec_pty.c index 7e1a05a81..ef39f80e9 100644 --- a/exec_pty.c +++ b/exec_pty.c @@ -822,7 +822,6 @@ exec_monitor(path, argv, envp, backchannel, rbac) /* Wait for errno on pipe, signal on backchannel or for SIGCHLD */ maxfd = MAX(MAX(errpipe[0], signal_pipe[0]), backchannel); fdsr = ecalloc(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask)); - zero_bytes(&cstat, sizeof(cstat)); tv.tv_sec = 0; tv.tv_usec = 0; for (;;) {