Skip to contentSkip to conversation

Fix: mi: logically dead code, missing ret assignment

PATCH David Goulet 1 participant 1 message Jul 29, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged

Quoted 26 lines · Jonathan Rajotte Julien
---
 src/bin/lttng/commands/list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/bin/lttng/commands/list.c +1 -1
index 210c2f4..956b62e 100644
@@ -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;
 		}
Signature · 7 lines
2.0.0


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev