Fix: trigger: erroneous check for success of trigger creation
[lttng-tools.git] / src / common / trigger.c
index e69e72e076267be0b7b6290b9032cc11b941caa1..e038fa81a052d71fe3952afaae96c96982a23ae3 100644 (file)
@@ -264,7 +264,7 @@ error:
        lttng_condition_put(condition);
        lttng_action_put(action);
 end:
-       if (ret == 0) {
+       if (ret >= 0) {
                *_trigger = trigger;
        } else {
                lttng_trigger_put(trigger);
This page took 0.030648 seconds and 4 git commands to generate.