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
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@180802
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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]);