Skip to content

Commit 86d7d99

Browse files
committed
Revert "daemon.cpp: use C++ assignment to zero-out struct, not memset"
1 parent bce551d commit 86d7d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon/daemon/daemon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ namespace PCMDaemon {
374374
}
375375

376376
//Clear out shared memory
377-
*sharedPCMState_ = {};
377+
std::memset(sharedPCMState_, 0, sizeof(SharedPCMState));
378378
}
379379

380380
gid_t Daemon::resolveGroupName(const std::string& groupName)

0 commit comments

Comments
 (0)