[svn-commits] rmudgett: branch 13 r426079 - /branches/13/main/translate.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 21 12:47:45 CDT 2014


Author: rmudgett
Date: Tue Oct 21 12:47:38 2014
New Revision: 426079

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426079
Log:
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.

Modified:
    branches/13/main/translate.c

Modified: branches/13/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/translate.c?view=diff&rev=426079&r1=426078&r2=426079
==============================================================================
--- branches/13/main/translate.c (original)
+++ branches/13/main/translate.c Tue Oct 21 12:47:38 2014
@@ -845,6 +845,7 @@
 		return "";
 	}
 
+	ast_str_reset(*str);
 	codec_append_name(&p->t->src_codec, str);
 	while (p) {
 		ast_str_append(str, 0, "->");




More information about the svn-commits mailing list