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
This commit is contained in:
BJ Weschke
2006-05-25 14:32:15 +00:00
parent 36cf242f31
commit 6cfaaf9ac0

View File

@@ -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); 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 = '$'; *p = '$';
} }
} }
memset(meid, 0, sizeof(meid));
pbx_substitute_variables_helper(qe->chan, meid2, meid, sizeof(meid) - 1); pbx_substitute_variables_helper(qe->chan, meid2, meid, sizeof(meid) - 1);
} }