diff options
Diffstat (limited to 'cmd/zed/zed_exec.c')
-rw-r--r-- | cmd/zed/zed_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed_exec.c b/cmd/zed/zed_exec.c index 09b928dd5..19fc30b59 100644 --- a/cmd/zed/zed_exec.c +++ b/cmd/zed/zed_exec.c @@ -61,7 +61,7 @@ _zed_exec_create_env(zed_strings_t *zsp) for (q = zed_strings_first(zsp); q; q = zed_strings_next(zsp)) buflen += strlen(q) + 1; - buf = malloc(buflen); + buf = calloc(1, buflen); if (!buf) return (NULL); |