From 5d128a2f085ccbe908ece770d2452d192b8b5217 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 10 Nov 2011 12:40:05 -0500 Subject: [PATCH] Define ltt_transport_list as static Fix uninitialized state at constructor execution. Signed-off-by: Mathieu Desnoyers --- include/lttng/ust-events.h | 1 - liblttng-ust/ust-core.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 5c649e73..b930a349 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -360,7 +360,6 @@ const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_metadat const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_discard; const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite; -struct cds_list_head ltt_transport_list; struct ltt_transport *ltt_transport_find(const char *name); #endif /* _LTTNG_UST_EVENTS_H */ diff --git a/liblttng-ust/ust-core.c b/liblttng-ust/ust-core.c index 67e01600..80bd42b0 100644 --- a/liblttng-ust/ust-core.c +++ b/liblttng-ust/ust-core.c @@ -22,7 +22,7 @@ #include #include -CDS_LIST_HEAD(ltt_transport_list); +static CDS_LIST_HEAD(ltt_transport_list); void init_usterr(void) { -- 2.34.1