Warning fix: pointer may be uninitialized if assertions are disabled
[babeltrace.git] / formats / ctf / ir / resolve.c
index fba3f03e1b8b596e489dad2b24119d290ecd1a1f..33947598b46199d5383df36884dfdada1183d2b3 100644 (file)
@@ -927,6 +927,8 @@ int resolve_sequence_or_variant_type(struct bt_ctf_field_type *type,
                break;
        default:
                assert(false);
+               ret = -1;
+               goto end;
        }
 
        /* Get target field path out of path string */
This page took 0.022555 seconds and 4 git commands to generate.