translage.c: Fix regression when generating translation path strings.

Fix the AMI Status action read and write translation path strings from
growing for each channel in the status event list by reseting the ast
string given to ast_translate_path_to_str() to fill in the given
translation path.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@426079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2014-10-21 17:47:38 +00:00
parent 0e911663e3
commit 70f1c82ac2

View File

@@ -845,6 +845,7 @@ const char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str **
return ""; return "";
} }
ast_str_reset(*str);
codec_append_name(&p->t->src_codec, str); codec_append_name(&p->t->src_codec, str);
while (p) { while (p) {
ast_str_append(str, 0, "->"); ast_str_append(str, 0, "->");