Fix: uninitialized variable may be used warning
[babeltrace.git] / lib / ctf-ir / field-types.c
index a6ebdb391d8f9591bb92d19f749a7ba1191e71a7..c2a5383ccc86cb71f8d5f602c7cfee7dc46f2b41 100644 (file)
@@ -2977,7 +2977,7 @@ int bt_field_type_get_alignment(struct bt_field_type *type)
                assert(element_count >= 0);
 
                for (i = 0; i < element_count; i++) {
-                       struct bt_field_type *field;
+                       struct bt_field_type *field = NULL;
                        int field_alignment;
 
                        ret = bt_field_type_structure_get_field_by_index(
This page took 0.024368 seconds and 4 git commands to generate.