[asterisk-commits] file: branch 1.6.1 r180802 - in /branches/1.6.1: ./ main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 10 09:42:22 CDT 2009


Author: file
Date: Tue Mar 10 09:42:18 2009
New Revision: 180802

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180802
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.1/   (props changed)
    branches/1.6.1/main/manager.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/main/manager.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/main/manager.c?view=diff&rev=180802&r1=180801&r2=180802
==============================================================================
--- branches/1.6.1/main/manager.c (original)
+++ branches/1.6.1/main/manager.c Tue Mar 10 09:42:18 2009
@@ -2656,6 +2656,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