aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Antonov <ihor@antonovs.family>2023-03-18 05:43:35 +0000
committerKyle Evans <kevans@FreeBSD.org>2023-04-09 22:49:51 +0000
commit980ad642711fadb351ca53cad6341343b98d9cb0 (patch)
tree28f07a270f1854eddc8e9e5e65272caadcfef258
parentedc3bffde20a0cc6ad5921fbaab75bbf3ec44e68 (diff)
downloadsrc-980ad642711fadb351ca53cad6341343b98d9cb0.tar.gz
src-980ad642711fadb351ca53cad6341343b98d9cb0.zip
daemon: remove unnecessary memset in daemon_state_init()
(cherry picked from commit 8117ea0a413150dccc05ea376596b98c4b1855e6)
-rw-r--r--usr.sbin/daemon/daemon.c1
1 files changed, 0 insertions, 1 deletions
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,