From: Jérémie Galarneau Date: Wed, 27 Apr 2016 16:09:18 +0000 (-0400) Subject: Warning fix: pointer may be uninitialized if assertions are disabled X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5febb458b362d31605fd824bead0f284b2e7bbcf;p=deliverable%2Fbabeltrace.git Warning fix: pointer may be uninitialized if assertions are disabled Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/resolve.c b/formats/ctf/ir/resolve.c index fba3f03e1..33947598b 100644 --- a/formats/ctf/ir/resolve.c +++ b/formats/ctf/ir/resolve.c @@ -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 */