diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-25 14:32:15 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-25 14:32:15 +0000 |
commit | e9dd85c83688e8f596e9ef1b1956f2542d4fce46 (patch) | |
tree | 2bfa7c4a18302ac0a63a3ecae5ccebd1deb3d1fb /apps | |
parent | c149081a4bf4f37a3ce20efa1fea3fd3f6d1610a (diff) |
Properly initialize destination variables before we send them into pbx_substitute_variables_helper(..). Ya! Testing! Take 2.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30216 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index d42f20e85..15e123a64 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); } |