Initialize short_name at trace creation
authorYannick Brosseau <yannick.brosseau@gmail.com>
Fri, 2 Aug 2013 17:55:44 +0000 (13:55 -0400)
committerYannick Brosseau <yannick.brosseau@gmail.com>
Fri, 2 Aug 2013 17:55:44 +0000 (13:55 -0400)
Fixes #610

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
lttv/lttv/traceset.c

index aafa3714d0a0647ff2a248f056319a349037ab01..349c702ff69d7376b6bb3c6acfb84afa2ff11636 100644 (file)
@@ -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);
This page took 0.024629 seconds and 4 git commands to generate.