Fix incorrect memset call on an std::string (#12982)
* Fix incorrect memset call on an std::string * Remove explicit clear call * Other memset * Cleanup diff
Blue committed
Jun 18, 2025 at 18:29 UTC
6319b0268702a12e2d66cd37ae1495bfa4f5c009
1 file changed
-1
src/linux/init/util.h
-1
@@ -93,7 +93,6 @@ public:
93
InteropServer(InteropServer&& other) noexcept :
94
m_InteropSocketPath(std::move(other.m_InteropSocketPath)), m_InteropSocket(std::move(other.m_InteropSocket))
95
{
96
- memset(&other.m_InteropSocketPath, 0, sizeof(other.m_InteropSocketPath));
96
}
97
98
int Create();