Namespace the struct trace_descriptor
[babeltrace.git] / formats / ctf / events.c
index 5a6f6255b7eed0b33e498bdbca061390daacd8d6..d9460b169e98e68ebb0c0f6a9630b4f563f4d522 100644 (file)
@@ -168,7 +168,7 @@ const char *bt_ctf_event_name(const struct bt_ctf_event *ctf_event)
 
 const char *bt_ctf_field_name(const struct definition *def)
 {
-       if (!def)
+       if (!def || !def->name)
                return NULL;
 
        return rem_(g_quark_to_string(def->name));
@@ -613,7 +613,7 @@ int bt_ctf_get_event_decl_list(int handle_id, struct bt_context *ctx,
                unsigned int *count)
 {
        struct bt_trace_handle *handle;
-       struct trace_descriptor *td;
+       struct bt_trace_descriptor *td;
        struct ctf_trace *tin;
 
        if (!ctx || !list || !count)
This page took 0.022619 seconds and 4 git commands to generate.