Fix: initialize build id and debug link flags to 0
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 May 2016 18:00:16 +0000 (14:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 May 2016 18:01:00 +0000 (14:01 -0400)
When trace_baddr is called for [vdso], those fields are used without
being initialized.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-statedump.c

index 10854d9f1d268a5637a81144e97eb113ac2c1e9b..c676a3451e24698671413658add89dea9e18b6e0 100644 (file)
@@ -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,
This page took 0.025066 seconds and 4 git commands to generate.