Fix: sessiond: notification: find_tracer_event_source returns NULL
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 12 Jul 2021 22:42:57 +0000 (18:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 12 Jul 2021 22:42:57 +0000 (18:42 -0400)
Due to a bad edit of the original patch (my bad!)
find_tracer_event_source_element always returns NULL.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I7febee1d803034a06d5063a2cc9179c4edef4809

src/bin/lttng-sessiond/notification-thread-events.c

index 1093784113cd4e2b35cc5093ab3dd7d5b5bc6b69..9e5ec509135bd6d2818b6d6635ea6cdd0acf82ea 100644 (file)
@@ -2125,7 +2125,7 @@ find_tracer_event_source_element(struct notification_thread_state *state,
 
        source_element = NULL;
 end:
-       return NULL;
+       return source_element;
 }
 
 static
This page took 0.027472 seconds and 4 git commands to generate.