]> granicus.if.org Git - sudo/commitdiff
Don't need zero_bytes() after ecalloc()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 May 2012 17:07:00 +0000 (13:07 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 May 2012 17:07:00 +0000 (13:07 -0400)
--HG--
branch : 1.7

exec_pty.c

index 7e1a05a81c54d666f5859b5a856a3f566b212549..ef39f80e986a145ee93695915a7d748eb3f64729 100644 (file)
@@ -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 (;;) {