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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Iecf133fb2165686d1e8abd2225a8f90df22c41dc
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;
}