Don't expect to pack three tuples when you only have two
authorMatthew Jordan <mjordan@digium.com>
Thu, 9 May 2013 14:41:38 +0000 (14:41 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 9 May 2013 14:41:38 +0000 (14:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388175 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_userevent.c

index ded039e..ef03d83 100644 (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]);
        }
 
-       blob = ast_json_pack("{s: s, s: s, s: s}",
+       blob = ast_json_pack("{s: s, s: s}",
                             "eventname", args.eventname,
                             "body", ast_str_buffer(body));
        if (!blob) {