diff options
-rw-r--r-- | funcs/func_env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_env.c b/funcs/func_env.c index 362e9db50..90f582e70 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -69,7 +69,7 @@ static int stat_read(struct ast_channel *chan, const char *cmd, char *data, char *action; struct stat s; - *buf = '\0'; + ast_copy_string(buf, "0", len); action = strsep(&data, ","); if (stat(data, &s)) { |