summaryrefslogtreecommitdiff
path: root/main/translate.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-10-21 18:04:43 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-10-21 18:04:43 +0000
commit2165868be731d9a6d81cba249848de492d43e779 (patch)
treebc48499d7f6cbd1c7c7aa92b82011ffe50239fad /main/translate.c
parentdad0334cf1b907252dbd6a7ab54e66292983c889 (diff)
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. ........ Merged revisions 426079 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@426080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/translate.c')
-rw-r--r--main/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/translate.c b/main/translate.c
index 2778ebccf..72abb59eb 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -845,6 +845,7 @@ const char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str **
return "";
}
+ ast_str_reset(*str);
codec_append_name(&p->t->src_codec, str);
while (p) {
ast_str_append(str, 0, "->");