Be sure workspace is initialized

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-08-20 23:46:07 +00:00
parent eb22964898
commit 63373352e5

1
pbx.c
View File

@@ -993,6 +993,7 @@ void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char
}
/* Retrieve variable value */
strcpy(workspace, "");
pbx_substitute_variables_temp(c,vars,&cp4, workspace, sizeof(workspace));
if (cp4) {
length = strlen(cp4);