projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: initialize the cur_event variable before using it
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 0dd74e595b2c3c133e1fa8299c1ad7915421781b..418fccf7c9102387b0c7ede6a74c36ed6d569634 100644
(file)
--- 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;
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) {
/* Open domains element */
ret = mi_lttng_domains_open(writer);
if (ret) {
This page took
0.025839 seconds
and
5
git commands to generate.