Skip to content

Commit

Permalink
Revert "daemon.cpp: use C++ assignment to zero-out struct, not memset"
Browse files Browse the repository at this point in the history
  • Loading branch information
opcm committed Jan 30, 2019
1 parent bce551d commit 86d7d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/daemon/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ namespace PCMDaemon {
}

//Clear out shared memory
*sharedPCMState_ = {};
std::memset(sharedPCMState_, 0, sizeof(SharedPCMState));
}

gid_t Daemon::resolveGroupName(const std::string& groupName)
Expand Down

0 comments on commit 86d7d99

Please sign in to comment.