aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/trace-event-parse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c
index f73ee55b51e8..59e4e4db7438 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -1716,12 +1716,18 @@ process_arg_token(struct event *event, struct print_arg *arg,
1716 1716
1717static int event_read_print_args(struct event *event, struct print_arg **list) 1717static int event_read_print_args(struct event *event, struct print_arg **list)
1718{ 1718{
1719 enum event_type type; 1719 enum event_type type = EVENT_ERROR;
1720 struct print_arg *arg; 1720 struct print_arg *arg;
1721 char *token; 1721 char *token;
1722 int args = 0; 1722 int args = 0;
1723 1723
1724 do { 1724 do {
1725 if (type == EVENT_NEWLINE) {
1726 free_token(token);
1727 type = read_token_item(&token);
1728 continue;
1729 }
1730
1725 arg = malloc_or_die(sizeof(*arg)); 1731 arg = malloc_or_die(sizeof(*arg));
1726 memset(arg, 0, sizeof(*arg)); 1732 memset(arg, 0, sizeof(*arg));
1727 1733