git: 980ad642711f - stable/13 - daemon: remove unnecessary memset in daemon_state_init()

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 23:57:57 UTC
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=980ad642711fadb351ca53cad6341343b98d9cb0

commit 980ad642711fadb351ca53cad6341343b98d9cb0
Author:     Ihor Antonov <ihor@antonovs.family>
AuthorDate: 2023-03-18 05:43:35 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-04-09 22:49:51 +0000

    daemon: remove unnecessary memset in daemon_state_init()
    
    (cherry picked from commit 8117ea0a413150dccc05ea376596b98c4b1855e6)
---
 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,