trigger: implement trigger naming
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-commands.c
index dc03e6a2df2fd9e7eab8634b5ece6ebb557c91de..28ed0b339d16c07e9d65763ff572a39a6e830945 100644 (file)
@@ -117,9 +117,11 @@ enum lttng_error_code notification_thread_command_register_trigger(
        enum lttng_error_code ret_code;
        struct notification_thread_command cmd = {};
 
+       assert(trigger);
        init_notification_thread_command(&cmd);
 
        cmd.type = NOTIFICATION_COMMAND_TYPE_REGISTER_TRIGGER;
+       lttng_trigger_get(trigger);
        cmd.parameters.trigger = trigger;
 
        ret = run_command_wait(handle, &cmd);
This page took 0.031902 seconds and 4 git commands to generate.