From: Mathieu Desnoyers Date: Tue, 26 Mar 2013 02:35:46 +0000 (-0400) Subject: Fix: UST context activation X-Git-Tag: v2.2.0-rc1~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9f9ee9c949bc4402493bb9f73e876ff1f725b1f4;p=lttng-tools.git Fix: UST context activation Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- 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;