All of lore.kernel.org
 help / color / mirror / Atom feed
* [lttng-tools PATCH] Fix: UST context activation
@ 2013-03-26  2:35 Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-03-26  2:35 UTC (permalink / raw)
  To: dgoulet, lttng-dev

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@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;

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [lttng-tools PATCH] Fix: UST context activation
       [not found] <20130326023546.GA7176@Krystal>
@ 2013-03-26 13:39 ` David Goulet
  0 siblings, 0 replies; 2+ messages in thread
From: David Goulet @ 2013-03-26 13:39 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev

Merged!

Davd

Mathieu Desnoyers:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@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;
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-26 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26  2:35 [lttng-tools PATCH] Fix: UST context activation Mathieu Desnoyers
     [not found] <20130326023546.GA7176@Krystal>
2013-03-26 13:39 ` David Goulet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.