X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=418fccf7c9102387b0c7ede6a74c36ed6d569634;hp=0dd74e595b2c3c133e1fa8299c1ad7915421781b;hb=d113fbc8270a4c2089c6e1aa1f5f5c5bb3f4c9dd;hpb=e57427575fc6deabed09cb5b4fae029d05e5bfd9 diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 0dd74e595..418fccf7c 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -621,6 +621,8 @@ static int mi_list_ust_event_fields(struct lttng_event_field *fields, int count, int event_element_open = 0; struct lttng_event cur_event; + memset(&cur_event, 0, sizeof(cur_event)); + /* Open domains element */ ret = mi_lttng_domains_open(writer); if (ret) {