struct debug_info_component *component)
{
struct bt_ctf_event *writer_event = NULL;
- struct bt_ctf_field *field, *copy_field = NULL;
+ struct bt_ctf_field *field = NULL, *copy_field = NULL;
int ret;
writer_event = bt_ctf_event_create(writer_event_class);
struct bt_ctf_event_class *event_class = NULL, *writer_event_class = NULL;
struct bt_ctf_stream_class *stream_class = NULL, *writer_stream_class = NULL;
struct bt_ctf_event *writer_event = NULL;
- struct bt_ctf_packet *packet, *writer_packet = NULL;
+ struct bt_ctf_packet *packet = NULL, *writer_packet = NULL;
struct bt_ctf_trace *writer_trace = NULL;
struct debug_info *debug_info;
const char *event_name;
struct bt_ctf_field *packet_context = NULL, *writer_packet_context = NULL;
struct bt_ctf_field_type *struct_type = NULL, *writer_packet_context_type = NULL;
struct bt_ctf_stream_class *writer_stream_class = NULL;
- struct bt_ctf_field *field;
+ struct bt_ctf_field *field = NULL;
struct bt_ctf_field_type *field_type;
int nr_fields, i;