aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zed/zed_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zed/zed_conf.c')
-rw-r--r--cmd/zed/zed_conf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/zed/zed_conf.c b/cmd/zed/zed_conf.c
index 77f772ad5..fc7bd8a7e 100644
--- a/cmd/zed/zed_conf.c
+++ b/cmd/zed/zed_conf.c
@@ -51,12 +51,10 @@ zed_conf_create(void)
{
struct zed_conf *zcp;
- zcp = malloc(sizeof (*zcp));
+ zcp = calloc(1, sizeof (*zcp));
if (!zcp)
goto nomem;
- memset(zcp, 0, sizeof (*zcp));
-
zcp->syslog_facility = LOG_DAEMON;
zcp->min_events = ZED_MIN_EVENTS;
zcp->max_events = ZED_MAX_EVENTS;