Fix missing channel name copy for auto channel creation
[lttng-tools.git] / lttng-sessiond / main.c
index e079afb7dc3bd8fad4def6c0729a29c41af2482e..4bb7240378161540cb4573e4a3fc91e076dbdbae 100644 (file)
@@ -2445,6 +2445,7 @@ static int cmd_enable_event(struct ltt_session *session, int domain,
                                ret = LTTCOMM_FATAL;
                                goto error;
                        }
+                       snprintf(attr->name, NAME_MAX, "%s", channel_name);
 
                        /* Use the internal command enable channel */
                        ret = cmd_enable_channel(session, domain, attr);
This page took 0.022767 seconds and 4 git commands to generate.