mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Merged revisions 58880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r58880 | tilghman | 2007-03-13 20:47:08 -0500 (Tue, 13 Mar 2007) | 3 lines 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/trunk@58881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -681,7 +681,7 @@ static struct ast_custom_function strptime_function = {
|
|||||||
static int function_eval(struct ast_channel *chan, const char *cmd, char *data,
|
static int function_eval(struct ast_channel *chan, const char *cmd, char *data,
|
||||||
char *buf, size_t len)
|
char *buf, size_t len)
|
||||||
{
|
{
|
||||||
buf[0] = '\0';
|
memset(buf, 0, len);
|
||||||
|
|
||||||
if (ast_strlen_zero(data)) {
|
if (ast_strlen_zero(data)) {
|
||||||
ast_log(LOG_WARNING, "EVAL requires an argument: EVAL(<string>)\n");
|
ast_log(LOG_WARNING, "EVAL requires an argument: EVAL(<string>)\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user