Fix: UST context activation
[lttng-tools.git] / src / bin / lttng-sessiond / context.c
index a83cb46fc9dec796868dbb95157d901cb46cdb70..b55254b4e398d0bfd55604c5fb8353dd3ba7f43a 100644 (file)
@@ -262,7 +262,7 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
        }
 
        /* Get UST channel if defined */
-       if (channel_name != '\0') {
+       if (channel_name[0] != '\0') {
                uchan = trace_ust_find_channel_by_name(chan_ht, channel_name);
                if (uchan == NULL) {
                        ret = LTTNG_ERR_UST_CHAN_NOT_FOUND;
This page took 0.023561 seconds and 4 git commands to generate.