X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=108f76065f907ad8b2dc9606b45b3d28dfdf2369;hp=1eac93487a12604edb9095edb42e3ee53f08cf65;hb=469b972be129ee907bb7ef4ee987cf040555c066;hpb=7a720e335b213b31f0dea57aa1555b67535d0277 diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 1eac93487..108f76065 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -409,7 +409,7 @@ static int list_agent_events(void) int i, size, ret = CMD_SUCCESS; struct lttng_domain domain; struct lttng_handle *handle; - struct lttng_event *event_list; + struct lttng_event *event_list = NULL; pid_t cur_pid = 0; char *cmdline = NULL; const char *agent_domain_str;