Fix scan-build warning of potential NULL dereference
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 05:26:35 +0000 (00:26 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 20:57:36 +0000 (15:57 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-fields.c

index 71c4ea173edd02d057cde0d08d226f57bff4c0be..4383e2a33783ee221af1115a493bf1845ff46c6a 100644 (file)
@@ -677,6 +677,7 @@ struct bt_ctf_field *bt_ctf_field_variant_get_field(struct bt_ctf_field *field,
 
                cur_tag_container =
                        bt_ctf_field_enumeration_get_container(variant->tag);
+               assert(cur_tag_container);
                cur_tag_enum_integer = container_of(cur_tag_container,
                        struct bt_ctf_field_integer, parent);
                bt_put(cur_tag_container);
This page took 0.026475 seconds and 4 git commands to generate.