Don't expect to pack three tuples when you only have two

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Jordan
2013-05-09 14:41:38 +00:00
parent f758885546
commit c81ff6102f

View File

@@ -92,7 +92,7 @@ static int userevent_exec(struct ast_channel *chan, const char *data)
ast_str_append(&body, 0, "%s\r\n", args.extra[x]); ast_str_append(&body, 0, "%s\r\n", args.extra[x]);
} }
blob = ast_json_pack("{s: s, s: s, s: s}", blob = ast_json_pack("{s: s, s: s}",
"eventname", args.eventname, "eventname", args.eventname,
"body", ast_str_buffer(body)); "body", ast_str_buffer(body));
if (!blob) { if (!blob) {