lttng: Add list-triggers command
[lttng-tools.git] / src / common / trigger.c
index f47f76d5529a732a8f6e263d32a373d622ac1b92..55ab99729c338259d72476e1a8074d12b9e5f43f 100644 (file)
@@ -84,11 +84,10 @@ struct lttng_condition *lttng_trigger_get_condition(
        return trigger ? trigger->condition : NULL;
 }
 
-LTTNG_HIDDEN
 const struct lttng_condition *lttng_trigger_get_const_condition(
                const struct lttng_trigger *trigger)
 {
-       return trigger->condition;
+       return trigger ? trigger->condition : NULL;
 }
 
 
@@ -103,11 +102,10 @@ struct lttng_action *lttng_trigger_get_action(
        return trigger ? trigger->action : NULL;
 }
 
-LTTNG_HIDDEN
 const struct lttng_action *lttng_trigger_get_const_action(
                const struct lttng_trigger *trigger)
 {
-       return trigger->action;
+       return trigger ? trigger->action : NULL;
 }
 
 static void trigger_destroy_ref(struct urcu_ref *ref)
This page took 0.023092 seconds and 4 git commands to generate.