From 04ad7785b5c1efc53fe5e71b8111a2793e923c6c Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Thu, 30 Jul 2009 14:50:23 -0400 Subject: [PATCH] initialize fields of LttTrace to ensure deterministic behavior and that valgrid does not complain --- ltt/tracefile.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.34.1