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:
parent
2db4a32abd
commit
31cf7329e4
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue