[asterisk-commits] russell: trunk r153057 - /trunk/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 31 04:31:11 CDT 2008
Author: russell
Date: Fri Oct 31 04:31:10 2008
New Revision: 153057
URL: http://svn.digium.com/view/asterisk?view=rev&rev=153057
Log:
Use the ast_str API call to reset the string instead of manually editing its internals
(closes issue #13816)
Reported by: eliel
Patches:
channel.c.patch uploaded by eliel (license 64)
Modified:
trunk/main/channel.c
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=153057&r1=153056&r2=153057
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Fri Oct 31 04:31:10 2008
@@ -363,8 +363,7 @@
return total;
}
traced = store->data;
- (*buf)->used = 0;
- (*buf)->str[0] = '\0';
+ ast_str_reset(*buf);
AST_LIST_TRAVERSE(&traced->trace, trace, entry) {
if (ast_str_append(buf, 0, "[%d] => %s, %s, %d\n", total, trace->context, trace->exten, trace->priority) < 0) {
ast_log(LOG_ERROR, "Data Buffer Size Exceeded!\n");
More information about the asterisk-commits
mailing list