X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Fctf-text.c;h=ddf41a54b107e765bb1fb7c3a1cfba537d3e430f;hp=008762339fdef48d861aca994d5a1f6661fcae40;hb=837b0013ab8a3851ee975f33a10726289afa7369;hpb=b5a8598f01c8e40163449bff173909eff824647b diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index 00876233..ddf41a54 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -60,7 +60,8 @@ int opt_all_field_names, opt_loglevel_field, opt_emf_field, opt_callsite_field, - opt_delta_field = 1; + opt_delta_field = 1, + opt_debug_info_full_path; enum field_item { ITEM_SCOPE, @@ -546,6 +547,10 @@ struct bt_trace_descriptor *ctf_text_open_trace(const char *path, int flags, FILE *fp; pos = g_new0(struct ctf_text_stream_pos, 1); + if (!pos) { + goto error; + } + init_trace_descriptor(&pos->trace_descriptor); pos->last_real_timestamp = -1ULL; pos->last_cycles_timestamp = -1ULL;