From 00db74df91601c2ce11092b207557231f39c9cc2 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 7 May 2021 18:42:46 -0700 Subject: 0->nullptr. Test: pass Change-Id: I12d499718ca24ba700c822b1599a9e85069a7a4e --- libs/binder/RpcServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/binder/RpcServer.cpp') diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp index 786e2db3b3..7da6847726 100644 --- a/libs/binder/RpcServer.cpp +++ b/libs/binder/RpcServer.cpp @@ -129,8 +129,8 @@ void RpcServer::join() { } while (true) { - unique_fd clientFd( - TEMP_FAILURE_RETRY(accept4(mServer.get(), nullptr, 0 /*length*/, SOCK_CLOEXEC))); + unique_fd clientFd(TEMP_FAILURE_RETRY( + accept4(mServer.get(), nullptr, nullptr /*length*/, SOCK_CLOEXEC))); if (clientFd < 0) { ALOGE("Could not accept4 socket: %s", strerror(errno)); -- cgit v1.2.3-59-g8ed1b