aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index af330e69c..3dbc078b0 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -681,7 +681,7 @@ static struct ast_custom_function strptime_function = {
static int function_eval(struct ast_channel *chan, const char *cmd, char *data,
char *buf, size_t len)
{
- buf[0] = '\0';
+ memset(buf, 0, len);
if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "EVAL requires an argument: EVAL(<string>)\n");