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>
Fri, 7 Sep 2018 16:20:32 +0000 (12:20 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.026972 seconds and 5 git commands to generate.