From 98429d37b2e66daf9d813e39cf78d1936c2521c9 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Mon, 12 Nov 2007 18:44:36 +0000 Subject: Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89186 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/app_exec.c') diff --git a/apps/app_exec.c b/apps/app_exec.c index 830968400..6a13e1801 100644 --- a/apps/app_exec.c +++ b/apps/app_exec.c @@ -99,6 +99,7 @@ static int exec_exec(struct ast_channel *chan, void *data) return 0; s = ast_strdupa(data); + args[0] = 0; appname = strsep(&s, "("); if (s) { endargs = strrchr(s, ')'); @@ -129,6 +130,7 @@ static int tryexec_exec(struct ast_channel *chan, void *data) return 0; s = ast_strdupa(data); + args[0] = 0; appname = strsep(&s, "("); if (s) { endargs = strrchr(s, ')'); -- cgit v1.2.3