Fix: lttng: uninitialized pointer free'd when no sessiond is present
[lttng-tools.git] / src / lib / lttng-ctl / rotate.c
index bc3a63cc8aa67d8a0bd089e32b56677d0795039f..bd02a940c22a34b70b15234a1f4dd61c7f2cd5c7 100644 (file)
@@ -372,7 +372,7 @@ int get_schedules(const char *session_name,
 {
        int ret;
        struct lttcomm_session_msg lsm;
-       struct lttng_session_list_schedules_return *schedules_comm;
+       struct lttng_session_list_schedules_return *schedules_comm = NULL;
        struct lttng_rotation_schedules *schedules = NULL;
        struct lttng_rotation_schedule *periodic = NULL, *size = NULL;
 
This page took 0.023124 seconds and 4 git commands to generate.