Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized

to all zeroes.  This fixes a case where it wasn't.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2007-03-14 01:47:08 +00:00
parent b7f05aeaaa
commit 2fd66654ac

View File

@@ -506,7 +506,7 @@ static struct ast_custom_function strptime_function = {
static int function_eval(struct ast_channel *chan, 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");