[lttng-dev] [PATCH lttng-tool] Fix: mi: logically dead code, missing ret assignment
Jonathan Rajotte Julien
jonathan.r.julien at gmail.com
Mon Jul 28 15:50:28 EDT 2014
Signed-off-by: Jonathan Rajotte Julien <jonathan.r.julien at gmail.com>
---
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 210c2f4..956b62e 100644
--- a/src/bin/lttng/commands/list.c
+++ b/src/bin/lttng/commands/list.c
@@ -748,7 +748,7 @@ static int mi_list_kernel_events(struct lttng_event *events, int count,
}
for (i = 0; i < count; i++) {
- mi_lttng_event(writer, &events[i], 0);
+ ret = mi_lttng_event(writer, &events[i], 0);
if (ret) {
goto end;
}
--
2.0.0
More information about the lttng-dev
mailing list