X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Fmain.c;h=867ba4188e37419c2f419429248126c97143bae8;hb=9928e7b733043d2f44bd2a4b0e041a0553fd427f;hp=c85ff03511e55c9d78b676c457dfd5b58077b1f5;hpb=a54bd42d73836eb9033a31c3f68be5b7e8612dce;p=lttng-tools.git diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index c85ff0351..867ba4188 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -1455,7 +1455,7 @@ static void init_kernel_tracer(void) int ret; char *proc_mounts = "/proc/mounts"; char line[256]; - char *debugfs_path = NULL, *lttng_path; + char *debugfs_path = NULL, *lttng_path = NULL; FILE *fp; /* Detect debugfs */ @@ -2609,7 +2609,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx) case LTTNG_LIST_EVENTS: { size_t nb_event; - struct lttng_event *events; + struct lttng_event *events = NULL; nb_event = cmd_list_events(cmd_ctx->session, cmd_ctx->lsm->u.list.channel_name, &events);