From: Mathieu Desnoyers Date: Mon, 16 May 2016 18:00:16 +0000 (-0400) Subject: Fix: initialize build id and debug link flags to 0 X-Git-Tag: v2.8.0~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2bb51006eb599206433572e84fbe13737c72398f;p=lttng-ust.git Fix: initialize build id and debug link flags to 0 When trace_baddr is called for [vdso], those fields are used without being initialized. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-statedump.c b/liblttng-ust/lttng-ust-statedump.c index 10854d9f..c676a345 100644 --- a/liblttng-ust/lttng-ust-statedump.c +++ b/liblttng-ust/lttng-ust-statedump.c @@ -167,6 +167,8 @@ int trace_baddr(struct bin_info_data *bin_data) } } else { bin_data->memsz = 0; + bin_data->has_build_id = 0; + bin_data->has_debug_link = 0; } ret = trace_statedump_event(trace_bin_info_cb, bin_data->owner,