daemon: remove unnecessary memset in daemon_state_init()
Pull Request: https://github.com/freebsd/freebsd-src/pull/694
This commit is contained in:
parent
cf6356fd47
commit
8117ea0a41
@ -730,7 +730,6 @@ reopen_log(struct daemon_state *state)
|
|||||||
static void
|
static void
|
||||||
daemon_state_init(struct daemon_state *state)
|
daemon_state_init(struct daemon_state *state)
|
||||||
{
|
{
|
||||||
memset(state, 0, sizeof(struct daemon_state));
|
|
||||||
*state = (struct daemon_state) {
|
*state = (struct daemon_state) {
|
||||||
.pipe_fd = { -1, -1 },
|
.pipe_fd = { -1, -1 },
|
||||||
.parent_pidfh = NULL,
|
.parent_pidfh = NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user