Remove default to display field names in live
[babeltrace.git] / formats / lttng-live / lttng-live.c
index c44d02c7e38c51d7797a2aad021404978780d30b..44f7d596f8eb5200bf77ed8264b4c9f9e91f9979 100644 (file)
@@ -101,15 +101,8 @@ static int lttng_live_open_trace_read(const char *path)
        int ret = 0;
        struct lttng_live_ctx ctx;
 
-       /* set default */
-       opt_context_field_names = 1;
-       opt_payload_field_names = 1;
-
        ctx.session = g_new0(struct lttng_live_session, 1);
-       if (!ctx.session) {
-               ret = -1;
-               goto end;
-       }
+
        /* We need a pointer to the context from the packet_seek function. */
        ctx.session->ctx = &ctx;
 
@@ -148,7 +141,6 @@ static int lttng_live_open_trace_read(const char *path)
 end_free:
        g_hash_table_destroy(ctx.session->ctf_traces);
        g_free(ctx.session);
-end:
        g_free(ctx.session->streams);
        return ret;
 }
This page took 0.022716 seconds and 4 git commands to generate.