X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcontext.c;h=b55254b4e398d0bfd55604c5fb8353dd3ba7f43a;hb=a1dcaf0fdbfbaf02ef38886b556c3d37e4458fdc;hp=a83cb46fc9dec796868dbb95157d901cb46cdb70;hpb=9d035200e9006c4d4cf6951c54641e06c0bdf2bc;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/context.c b/src/bin/lttng-sessiond/context.c index a83cb46fc..b55254b4e 100644 --- a/src/bin/lttng-sessiond/context.c +++ b/src/bin/lttng-sessiond/context.c @@ -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;