[asterisk-commits] file: branch 1.6.0 r180801 - in /branches/1.6.0: ./ main/manager.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 10 09:41:37 CDT 2009
Author: file
Date: Tue Mar 10 09:41:33 2009
New Revision: 180801
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180801
Log:
Merged revisions 180800 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r180800 | file | 2009-03-10 11:40:38 -0300 (Tue, 10 Mar 2009) | 5 lines
Reset the thread local string buffer when handling the UserEvent action.
(closes issue #14593)
Reported by: JimDickenson
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/main/manager.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/main/manager.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/manager.c?view=diff&rev=180801&r1=180800&r2=180801
==============================================================================
--- branches/1.6.0/main/manager.c (original)
+++ branches/1.6.0/main/manager.c Tue Mar 10 09:41:33 2009
@@ -2462,6 +2462,9 @@
const char *event = astman_get_header(m, "UserEvent");
struct ast_str *body = ast_str_thread_get(&userevent_buf, 16);
int x;
+
+ ast_str_reset(body);
+
for (x = 0; x < m->hdrcount; x++) {
if (strncasecmp("UserEvent:", m->headers[x], strlen("UserEvent:"))) {
ast_str_append(&body, 0, "%s\r\n", m->headers[x]);
More information about the asterisk-commits
mailing list