Fix uninitialized pointer
[lttng-tools.git] / ltt-sessiond / main.c
index c85ff03511e55c9d78b676c457dfd5b58077b1f5..867ba4188e37419c2f419429248126c97143bae8 100644 (file)
@@ -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);
This page took 0.025168 seconds and 5 git commands to generate.