From: Jonathan Rajotte Date: Fri, 8 Nov 2019 21:28:00 +0000 (-0500) Subject: Fix: Initialize ret to zero X-Git-Tag: v2.12.0-rc1~96 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0dda67289b8a86fd3f117d644f00f2985d399208;p=lttng-tools.git Fix: Initialize ret to zero For the improbable case that the domain is unknown the return value ret would not be initialized. Signed-off-by: Jonathan Rajotte Change-Id: I22ae6b98bbbc4f4fe3e9c28985e2400f7c668525 Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index fb891beb7..226eb4c87 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -1612,7 +1612,7 @@ end: */ static int list_trackers(const struct lttng_domain *domain) { - int ret; + int ret = 0; /* Trackers listing */ if (lttng_opt_mi) {