Fix: lttng: uninitialized pointer free'd when no sessiond is present
[lttng-tools.git] / src / lib / lttng-ctl / rotate.c
index daba7afa2318ab3b504632192502b589475732b1..2dbaa46a3eaf9d955b3d50f030c0504421aa3260 100644 (file)
@@ -362,7 +362,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.033376 seconds and 5 git commands to generate.