From 31cf7329e42f50db8962eeea68e7660ce12bfb25 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 22 Oct 2018 11:10:50 +0100 Subject: [PATCH] fix state of uninitialized lists --- lib/node.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node.c b/lib/node.c index 568542a3c..0c61b990f 100644 --- a/lib/node.c +++ b/lib/node.c @@ -60,6 +60,7 @@ static int node_direction_init(struct node_direction *nd, struct node *n) nd->enabled = 0; nd->vectorize = 1; nd->builtin = 1; + nd->hooks.state = STATE_DESTROYED; ret = list_init(&nd->hooks); if (ret) @@ -174,6 +175,7 @@ int node_init(struct node *n, struct node_type *vt) n->_name = NULL; n->_name_long = NULL; + n->signals.state = STATE_DESTROYED; list_init(&n->signals); /* Default values */