Skip to contentSkip to conversation

Fix: UST context activation

PATCH David Goulet 1 participant 1 message Mar 26, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Merged!

Davd

Mathieu Desnoyers:

Quoted 16 lines

---

src/bin/lttng-sessiond/context.c +1 -1
index a83cb46..b55254b 100644
@@ -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;