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.9.0-rc1~106 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fd7830318624fb4b7491f53f59e53da05a790483;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 e64b4f25..c2926aec 100644 --- a/liblttng-ust/lttng-ust-statedump.c +++ b/liblttng-ust/lttng-ust-statedump.c @@ -177,6 +177,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,