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));
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)