Fix: returned pids may be uninitialized
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 Aug 2018 20:56:52 +0000 (16:56 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Sep 2018 21:30:16 +0000 (17:30 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index f0b211c7b4a426e959855637ce23d7c08496143d..8afa6a820bf73a14baf1d5e7c5cd021a7621599a 100644 (file)
@@ -2338,7 +2338,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.025787 seconds and 4 git commands to generate.