Fix: action: lttng_action_group_add_action returns status invalid
[lttng-tools.git] / src / common / actions / group.c
index 5931eb38ba4534c64b59d843aa083576b39ec36f..f5720741598af8c1288c1a383e38f3bd7c9be6e0 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <assert.h>
 #include <common/dynamic-array.h>
-#include <common/sessiond-comm/payload.h>
-#include <common/sessiond-comm/payload-view.h>
+#include <common/payload.h>
+#include <common/payload-view.h>
 #include <common/error.h>
 #include <common/macros.h>
 #include <lttng/action/action-internal.h>
@@ -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;
        }
This page took 0.024362 seconds and 4 git commands to generate.