From: Philippe Proulx Date: Tue, 22 Nov 2016 09:32:16 +0000 (-0500) Subject: values.c: completely initialize the bt_value_null_instance object X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f685129c346e580bfaa4f555c4c80b9b63e490ea;p=deliverable%2Fbabeltrace.git values.c: completely initialize the bt_value_null_instance object Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/lib/values.c b/lib/values.c index cea4b10bd..1c7902bd7 100644 --- a/lib/values.c +++ b/lib/values.c @@ -51,6 +51,14 @@ struct bt_value { static struct bt_value bt_value_null_instance = { + .base = { + .ref_count = { + .count = 1, + .release = NULL, + }, + .release = NULL, + .parent = NULL, + }, .type = BT_VALUE_TYPE_NULL, .is_frozen = true, };