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:00:16 +0000 (14:00 -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 e64b4f2538f79251da1f6627d2f1ab5569b30a95..c2926aecdb78eeaffc097cf6fe27d04f9e89330c 100644 (file)
@@ -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,
This page took 0.02482 seconds and 4 git commands to generate.