From: Mathieu Desnoyers Date: Thu, 10 Nov 2011 17:40:05 +0000 (-0500) Subject: Define ltt_transport_list as static X-Git-Tag: v1.9.1~114 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5d128a2f085ccbe908ece770d2452d192b8b5217;p=lttng-ust.git Define ltt_transport_list as static Fix uninitialized state at constructor execution. Signed-off-by: Mathieu Desnoyers --- 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) {