Fix various "may be used uninitialized" warnings (GCC)
[babeltrace.git] / src / ctf-writer / stream-class.c
index ffec66557f991456a8ecdf4a8dfc4f09731e247f..ac3db47a1ff430fa71e461f8753417e1945af3d8 100644 (file)
@@ -613,7 +613,7 @@ int init_packet_context(struct bt_ctf_stream_class *stream_class)
                bt_ctf_field_type_structure_create();
        struct bt_ctf_field_type *_uint64_t =
                get_field_type(FIELD_TYPE_ALIAS_UINT64_T);
-       struct bt_ctf_field_type *ts_begin_end_uint64_t;
+       struct bt_ctf_field_type *ts_begin_end_uint64_t = NULL;
 
        if (!packet_context_type) {
                BT_LOGE_STR("Cannot create empty structure field type.");
This page took 0.023701 seconds and 4 git commands to generate.