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>
Wed, 29 Aug 2018 21:32:45 +0000 (17:32 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index 0dd12b26f3222584e2b53703a37364ce76c2dcb4..eff08df80ee937c46177765bf518f739a1d5d2a7 100644 (file)
@@ -2722,7 +2722,7 @@ int lttng_list_tracker_pids(struct lttng_handle *handle,
        int enabled = 1;
        struct lttcomm_session_msg lsm;
        size_t nr_pids;
        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;
 
        if (handle == NULL) {
                return -LTTNG_ERR_INVALID;
This page took 0.027299 seconds and 5 git commands to generate.