Fix: bt_ctf_field_type_structure_add_field argument validation
[babeltrace.git] / formats / ctf / writer / event-types.c
index 7f7fa7622247abb3e09288960429722d3f9cf8a1..08b832e8255df995e3ca3ac2dc2cc53b24055240 100644 (file)
@@ -550,6 +550,7 @@ int bt_ctf_field_type_structure_add_field(struct bt_ctf_field_type *type,
                validate_identifier(field_name) ||
                (type->declaration->id != CTF_TYPE_STRUCT) ||
                bt_ctf_field_type_validate(field_type)) {
+               ret = -1;
                goto end;
        }
 
This page took 0.024424 seconds and 4 git commands to generate.