fix: bt_put on potentially unintialized variable
[babeltrace.git] / plugins / libctfcopytrace / ctfcopytrace.c
index 9789e5c42df0e8c325afd7fb4847bf2c88f6e96c..99a332bebce9e8c3c6227c6599e12d08a6ca249e 100644 (file)
@@ -538,7 +538,7 @@ struct bt_ctf_field *ctf_copy_packet_context(FILE *err,
        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 = NULL;
-       struct bt_ctf_field_type *field_type;
+       struct bt_ctf_field_type *field_type = NULL;
        int nr_fields, i;
 
        packet_context = bt_ctf_packet_get_context(packet);
This page took 0.02428 seconds and 4 git commands to generate.