Fix: bt_ctf_field_type_structure_add_field argument validation
[babeltrace.git] / formats / ctf / ir / event-types.c
index 48a2a746ad3c252fe952c746fa88dbd724c45d9a..7d01ce8b6535f1b7fa87d28329159b0242d2d1b0 100644 (file)
@@ -1016,6 +1016,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.025144 seconds and 4 git commands to generate.