1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix state of uninitialized lists

This commit is contained in:
Steffen Vogel 2018-10-22 11:10:50 +01:00
parent 2db4a32abd
commit 31cf7329e4

View file

@ -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 */