diff --git a/shellinabox/launcher.c b/shellinabox/launcher.c index 7fbda4b..8c89578 100644 --- a/shellinabox/launcher.c +++ b/shellinabox/launcher.c @@ -1661,7 +1661,8 @@ static void launcherDaemon(int fd) { } // Send file handle and process id back to parent - char cmsg_buf[CMSG_SPACE(sizeof(int))] = { 0 }; + char cmsg_buf[CMSG_SPACE(sizeof(int))]; // = { 0 }; // Valid initializer makes OSX mad. + cmsg_buf[0] = 0; struct iovec iov = { 0 }; struct msghdr msg = { 0 }; iov.iov_base = &pid;