Fixing Valgrind discovered issues.
o Clearing buffer sent via sendmsg.
This commit is contained in:
parent
7d396c8273
commit
f4a9e54dda
1 changed files with 1 additions and 1 deletions
|
@ -1662,7 +1662,7 @@ static void launcherDaemon(int fd) {
|
||||||
|
|
||||||
// Send file handle and process id back to parent
|
// Send file handle and process id back to parent
|
||||||
char cmsg_buf[CMSG_SPACE(sizeof(int))]; // = { 0 }; // Valid initializer makes OSX mad.
|
char cmsg_buf[CMSG_SPACE(sizeof(int))]; // = { 0 }; // Valid initializer makes OSX mad.
|
||||||
cmsg_buf[0] = 0;
|
memset (cmsg_buf, 0, sizeof (cmsg_buf)); // Quiet complaint from valgrind
|
||||||
struct iovec iov = { 0 };
|
struct iovec iov = { 0 };
|
||||||
struct msghdr msg = { 0 };
|
struct msghdr msg = { 0 };
|
||||||
iov.iov_base = &pid;
|
iov.iov_base = &pid;
|
||||||
|
|
Loading…
Reference in a new issue