From 0dda67289b8a86fd3f117d644f00f2985d399208 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 8 Nov 2019 16:28:00 -0500 Subject: [PATCH] Fix: Initialize ret to zero MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng/commands/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1