Fix : only one iterator per context
[babeltrace.git] / lib / context.c
index 0c20ed53de6b247ff996a85e0c49ca9b91fd0793..e9a35c1d5844f7be8c0983eb86b240901b58efd8 100644 (file)
@@ -50,6 +50,7 @@ struct bt_context *bt_context_create(void)
                                g_direct_equal, NULL,
                                (GDestroyNotify) bt_trace_handle_destroy);
 
                                g_direct_equal, NULL,
                                (GDestroyNotify) bt_trace_handle_destroy);
 
+       ctx->current_iterator = NULL;
        ctx->tc = g_new0(struct trace_collection, 1);
        init_trace_collection(ctx->tc);
 
        ctx->tc = g_new0(struct trace_collection, 1);
        init_trace_collection(ctx->tc);
 
This page took 0.022317 seconds and 4 git commands to generate.