From: BJ Weschke Date: Thu, 25 May 2006 14:32:15 +0000 (+0000) Subject: Properly initialize destination variables before we send them into pbx_substitute_va... X-Git-Tag: 1.4.0-beta1~1204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cfaaf9ac064ed0704673b1769b488ec9825cb43;p=thirdparty%2Fasterisk.git Properly initialize destination variables before we send them into pbx_substitute_variables_helper(..). Ya! Testing! Take 2. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30216 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index d42f20e857..15e123a64c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2365,6 +2365,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce } } + memset(tmpid, 0, sizeof(tmpid)); pbx_substitute_variables_helper(qe->chan, tmpid2, tmpid, sizeof(tmpid) - 1); } @@ -2378,6 +2379,8 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce *p = '$'; } } + + memset(meid, 0, sizeof(meid)); pbx_substitute_variables_helper(qe->chan, meid2, meid, sizeof(meid) - 1); }