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.10.6~44 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=72592aa4c220c945c0a3b4920e2e51b6efd3d77c;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 a1e10f25e..f6fadcb6a 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -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;