From: Jérémie Galarneau Date: Wed, 29 Aug 2018 20:56:52 +0000 (-0400) Subject: Fix: returned pids may be uninitialized X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=ff75c11e409c084f513046c7dd2071e4750081d9;hp=6bd61b9632ee566bcc7c274c07a9546c6852ab59;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 0dd12b26f..eff08df80 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -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; - int32_t *pids; + int32_t *pids = NULL; if (handle == NULL) { return -LTTNG_ERR_INVALID;