llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Dhruv Srivastava (DhruvSrivastavaX) <details> <summary>Changes</summary> Replaced `bzero` with the standard `memset` so that it is common to all platforms. Review Request: @<!-- -->DavidSpickett --- Full diff: https://github.com/llvm/llvm-project/pull/121747.diff 1 Files Affected: - (modified) lldb/source/Host/posix/DomainSocket.cpp (+1-1) ``````````diff diff --git a/lldb/source/Host/posix/DomainSocket.cpp b/lldb/source/Host/posix/DomainSocket.cpp index f85e1b9bbdc5c0..be8fcdf2c8f2c8 100644 --- a/lldb/source/Host/posix/DomainSocket.cpp +++ b/lldb/source/Host/posix/DomainSocket.cpp @@ -182,7 +182,7 @@ std::vector<std::string> DomainSocket::GetListeningConnectionURI() const { return {}; struct sockaddr_un addr; - bzero(&addr, sizeof(struct sockaddr_un)); + memset(&addr, 0, sizeof(struct sockaddr_un)); addr.sun_family = AF_UNIX; socklen_t addr_len = sizeof(struct sockaddr_un); if (::getsockname(m_socket, (struct sockaddr *)&addr, &addr_len) != 0) `````````` </details> https://github.com/llvm/llvm-project/pull/121747 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits