From: Mathieu Desnoyers Date: Tue, 26 Mar 2013 02:35:46 +0000 (-0400) Subject: Fix: UST context activation X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=9f9ee9c949bc4402493bb9f73e876ff1f725b1f4 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;