diff --git a/apps/app_queue.c b/apps/app_queue.c index d42f20e85744cb7aea51a5a50609d945d6bafb58..15e123a64c0d450ad56ae60a5efcd00abd99eeb3 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); }