diff --git a/lib/node.c b/lib/node.c index 4299eec24..bb3e02d84 100644 --- a/lib/node.c +++ b/lib/node.c @@ -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 */ diff --git a/lib/path.c b/lib/path.c index 982d89a6a..db2661eca 100644 --- a/lib/path.c +++ b/lib/path.c @@ -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;