From f3a9cc3478223679d8fea55d5eedce111b462feb Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 7 Jul 2020 19:50:06 -0400 Subject: [PATCH 1/1] Fix: action: lttng_action_group_add_action returns status invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit IS_GROUP_ACTION macro was performed on the action to be added instead of the action representing the group, `group` in this function. This always resulted in error on call to lttng_action_group_add_action. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Iecf133fb2165686d1e8abd2225a8f90df22c41dc --- src/common/actions/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/actions/group.c b/src/common/actions/group.c index 1a434616f..f57207415 100644 --- a/src/common/actions/group.c +++ b/src/common/actions/group.c @@ -278,7 +278,7 @@ enum lttng_action_status lttng_action_group_add_action( enum lttng_action_status status; int ret; - if (!group || !IS_GROUP_ACTION(action) || !action) { + if (!group || !IS_GROUP_ACTION(group) || !action) { status = LTTNG_ACTION_STATUS_INVALID; goto end; } -- 2.34.1