Store the version of the tracer in the UID registry
[lttng-tools.git] / src / bin / lttng-relayd / viewer-stream.c
index 42318dff9160ffada3baf0385b6e7320a08f55e5..7c59cd05d88ea3797569e87d8d964d67aa61e562 100644 (file)
@@ -17,7 +17,6 @@
  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <common/common.h>
 #include <common/index/index.h>
@@ -339,6 +338,10 @@ void print_viewer_streams(void)
        struct lttng_ht_iter iter;
        struct relay_viewer_stream *vstream;
 
+       if (!viewer_streams_ht) {
+               return;
+       }
+
        rcu_read_lock();
        cds_lfht_for_each_entry(viewer_streams_ht->ht, &iter.iter, vstream,
                        stream_n.node) {
This page took 0.023403 seconds and 4 git commands to generate.