git: 8117ea0a4131 - main - daemon: remove unnecessary memset in daemon_state_init()

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Sat, 18 Mar 2023 05:53:42 UTC
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=8117ea0a413150dccc05ea376596b98c4b1855e6

commit 8117ea0a413150dccc05ea376596b98c4b1855e6
Author:     Ihor Antonov <ihor@antonovs.family>
AuthorDate: 2023-03-18 05:43:35 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-03-18 05:52:59 +0000

    daemon: remove unnecessary memset in daemon_state_init()
    
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/694
---
 usr.sbin/daemon/daemon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c
index 2a57d021258e..eb69fc87a827 100644
--- a/usr.sbin/daemon/daemon.c
+++ b/usr.sbin/daemon/daemon.c
@@ -730,7 +730,6 @@ reopen_log(struct daemon_state *state)
 static void
 daemon_state_init(struct daemon_state *state)
 {
-	memset(state, 0, sizeof(struct daemon_state));
 	*state = (struct daemon_state) {
 		.pipe_fd = { -1, -1 },
 		.parent_pidfh = NULL,