From 91879350bec01432e41753f74715c608f14085fb Mon Sep 17 00:00:00 2001 From: murf 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: http://svn.digium.com/svn/asterisk/trunk@89186 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_realtime.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pbx/pbx_realtime.c') diff --git a/pbx/pbx_realtime.c b/pbx/pbx_realtime.c index d733dc052..0d92fa720 100644 --- a/pbx/pbx_realtime.c +++ b/pbx/pbx_realtime.c @@ -196,6 +196,7 @@ static int realtime_exec(struct ast_channel *chan, const char *context, const ch char tmp2[80]; char tmp3[EXT_DATA_SIZE]; + appdata[0] = 0; /* just in case the substitute var func isn't called */ if(!ast_strlen_zero(tmp)) pbx_substitute_variables_helper(chan, tmp, appdata, sizeof(appdata) - 1); ast_verb(3, "Executing %s(\"%s\", \"%s\")\n", -- cgit v1.2.3