Skip to content

Commit 6319b02

Browse files
authored
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
1 parent c34a361 commit 6319b02

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/linux/init/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ class InteropServer
9393
InteropServer(InteropServer&& other) noexcept :
9494
m_InteropSocketPath(std::move(other.m_InteropSocketPath)), m_InteropSocket(std::move(other.m_InteropSocket))
9595
{
96-
memset(&other.m_InteropSocketPath, 0, sizeof(other.m_InteropSocketPath));
9796
}
9897

9998
int Create();

0 commit comments

Comments
 (0)