From: Yannick Brosseau Date: Fri, 2 Aug 2013 17:55:44 +0000 (-0400) Subject: Initialize short_name at trace creation X-Git-Tag: v1.5~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7cc5d6940eb4ca8516c91e62f5f27434b8adc390;p=lttv.git Initialize short_name at trace creation Fixes #610 Signed-off-by: Yannick Brosseau --- diff --git a/lttv/lttv/traceset.c b/lttv/lttv/traceset.c index aafa3714..349c702f 100644 --- a/lttv/lttv/traceset.c +++ b/lttv/lttv/traceset.c @@ -146,6 +146,7 @@ static LttvTrace *lttv_trace_create(LttvTraceset *ts, const char *path) new_trace->a = g_object_new(LTTV_ATTRIBUTE_TYPE, NULL); new_trace->id = id; new_trace->ref_count = 0; + new_trace->short_name[0] = '\0'; new_trace->traceset = ts; new_trace->state = g_new(LttvTraceState,1); lttv_trace_state_init(new_trace->state,new_trace);