From: Jérémie Galarneau Date: Wed, 29 Aug 2018 20:56:52 +0000 (-0400) Subject: Fix: returned pids may be uninitialized X-Git-Tag: v2.9.11~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a133cc070114e67294a80020678bd7f36d395e63;p=lttng-tools.git Fix: returned pids may be uninitialized Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index f0b211c7b..8afa6a820 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -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;