Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2023 23:57:57 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 980ad642711f - stable/13 - daemon: remove unnecessary memset in daemon_state_init()
Message-ID:  <202304092357.339NvvhO011961@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304092357.339NvvhO011961>