mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 11:43:52 +00:00
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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user