mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix initialization of _name members
This commit is contained in:
parent
98ea4d92b7
commit
10faca42d8
2 changed files with 6 additions and 1 deletions
|
@ -37,8 +37,11 @@ int node_init(struct node *n, struct node_type *vt)
|
|||
|
||||
n->_vt = vt;
|
||||
n->_vd = alloc(vt->size);
|
||||
|
||||
|
||||
n->name = NULL;
|
||||
n->_name = NULL;
|
||||
n->_name_long = NULL;
|
||||
|
||||
n->id = max_id++;
|
||||
|
||||
/* Default values */
|
||||
|
|
|
@ -164,6 +164,8 @@ int path_init(struct path *p, struct super_node *sn)
|
|||
|
||||
list_init(&p->hooks);
|
||||
list_init(&p->destinations);
|
||||
|
||||
p->_name = NULL;
|
||||
|
||||
/* Default values */
|
||||
p->reverse = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue