Fix: returned pids may be uninitialized
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index a1e10f25e82176393f92206c2779d09355c063e6..f6fadcb6adaadb16ccb21cb2fb0ad752581b1050 100644 (file)
@@ -2558,7 +2558,7 @@ int lttng_list_tracker_pids(struct lttng_handle *handle,
        int enabled = 1;
        struct lttcomm_session_msg lsm;
        size_t nr_pids;
-       int32_t *pids;
+       int32_t *pids = NULL;
 
        if (handle == NULL) {
                return -LTTNG_ERR_INVALID;
This page took 0.025613 seconds and 5 git commands to generate.