[lttng-dev] [lttng-tools PATCH] Fix: UST context activation

David Goulet dgoulet at efficios.com
Tue Mar 26 09:39:44 EDT 2013


Merged!

Davd

Mathieu Desnoyers:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
> diff --git a/src/bin/lttng-sessiond/context.c b/src/bin/lttng-sessiond/context.c
> index a83cb46..b55254b 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;
> 



More information about the lttng-dev mailing list