From: Pierre-Marc Fournier Date: Thu, 30 Jul 2009 18:50:23 +0000 (-0400) Subject: initialize fields of LttTrace to ensure deterministic behavior and that valgrid does... X-Git-Tag: v0.12.20~60 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=04ad7785b5c1efc53fe5e71b8111a2793e923c6c;p=lttv.git initialize fields of LttTrace to ensure deterministic behavior and that valgrid does not complain --- diff --git a/ltt/tracefile.c b/ltt/tracefile.c index 680bcc46..9cd13055 100644 --- a/ltt/tracefile.c +++ b/ltt/tracefile.c @@ -764,6 +764,11 @@ LttTrace *ltt_trace_open(const gchar *pathname) get_absolute_pathname(pathname, abs_path); t->pathname = g_quark_from_string(abs_path); + t->start_tsc = 0; + t->freq_scale = 1; + t->start_freq = 1; + t->start_time_from_tsc = ltt_time_zero; + g_datalist_init(&t->tracefiles); /* Test to see if it looks like a trace */