From f685129c346e580bfaa4f555c4c80b9b63e490ea Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 22 Nov 2016 04:32:16 -0500 Subject: [PATCH] values.c: completely initialize the bt_value_null_instance object MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- lib/values.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/values.c b/lib/values.c index cea4b10b..1c7902bd 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, }; -- 2.34.1