Fix: Initialize ret to zero
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 8 Nov 2019 21:28:00 +0000 (16:28 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Dec 2019 05:30:59 +0000 (00:30 -0500)
For the improbable case that the domain is unknown the return value ret
would not be initialized.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I22ae6b98bbbc4f4fe3e9c28985e2400f7c668525
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index fb891beb727a529c1724c034f502a82e6dd89955..226eb4c871da31102c9a2c096c49442e7ad2dd38 100644 (file)
@@ -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) {
This page took 0.044814 seconds and 4 git commands to generate.