From 9e5539cd2e813e5f640ed2fda782aebcdc1d0ecb Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Mon, 5 Dec 2022 18:51:17 +0000 Subject: [PATCH] fd-net-device: Fix nullptr clang-tidy warning --- src/fd-net-device/helper/netmap-net-device-helper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fd-net-device/helper/netmap-net-device-helper.cc b/src/fd-net-device/helper/netmap-net-device-helper.cc index 2ec463ae7..65cdfdd7e 100644 --- a/src/fd-net-device/helper/netmap-net-device-helper.cc +++ b/src/fd-net-device/helper/netmap-net-device-helper.cc @@ -258,7 +258,7 @@ NetmapNetDeviceHelper::CreateFileDescriptor() const // we wait for the child (the socket creator) to complete and read the // socket it created using the ancillary data mechanism. // - // Tom Goff reports the possiblility of a deadlock when trying to acquire the + // Tom Goff reports the possibility of a deadlock when trying to acquire the // python GIL here. He says that this might be due to trying to access Python // objects after fork() without calling PyOS_AfterFork() to properly reset // Python state (including the GIL). There is no code to cause the problem @@ -375,7 +375,7 @@ NetmapNetDeviceHelper::CreateFileDescriptor() const // data we expect to receive and point it to buffer. // struct msghdr msg; - msg.msg_name = 0; + msg.msg_name = nullptr; msg.msg_namelen = 0; msg.msg_iov = &iov; msg.msg_iovlen = 1;