Author: Dhruv Srivastava Date: 2025-01-06T11:26:38Z New Revision: 3bd494dfa6d520e25dc03047c92f28c121293a75
URL: https://github.com/llvm/llvm-project/commit/3bd494dfa6d520e25dc03047c92f28c121293a75 DIFF: https://github.com/llvm/llvm-project/commit/3bd494dfa6d520e25dc03047c92f28c121293a75.diff LOG: [lldb][POSIX] Replace bzero with memset in domain socket code (#121747) Replace `bzero` with the standard `memset` so that it is common to all platforms. Added: Modified: lldb/source/Host/posix/DomainSocket.cpp Removed: ################################################################################ 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) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits