This is an automated email from the ASF dual-hosted git repository.

bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 07dc5e1c599cb8784dd83a95202d07b1bccf964c
Author: Benjamin Bannier <[email protected]>
AuthorDate: Sat Mar 2 23:47:56 2019 +0100

    Initialized pointers with `nullptr` instead of `0`.
    
    Review: https://reviews.apache.org/r/70088/
---
 src/linux/ns.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/linux/ns.cpp b/src/linux/ns.cpp
index 4d16381..2440bb2 100644
--- a/src/linux/ns.cpp
+++ b/src/linux/ns.cpp
@@ -397,7 +397,7 @@ Try<pid_t> clone(
 
   char base[1];
 
-  iovec iov = {0};
+  iovec iov = {nullptr};
   iov.iov_base = base;
   iov.iov_len = sizeof(base);
 
@@ -413,7 +413,7 @@ Try<pid_t> clone(
   cmessage.cmsg_level = SOL_SOCKET;
   cmessage.cmsg_type = SCM_CREDENTIALS;
 
-  msghdr message = {0};
+  msghdr message = {nullptr};
   message.msg_name = nullptr;
   message.msg_namelen = 0;
   message.msg_iov = &iov;

Reply via email to