From: Mark Spencer Date: Wed, 20 Aug 2003 23:46:07 +0000 (+0000) Subject: Be sure workspace is initialized X-Git-Tag: 0.5.0~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63373352e5dfefc4ead0efa73ba48f07db85e680;p=thirdparty%2Fasterisk.git Be sure workspace is initialized git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1388 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index ff1740afe4..c1a4a7280e 100755 --- a/pbx.c +++ b/pbx.c @@ -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);