From 350112db1cde8de7dbe96c8ad87eb6affbffc133 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 25 Sep 2018 19:18:46 +0200 Subject: [PATCH] node: call init functions for node_tyles --- lib/node.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/node.c b/lib/node.c index 5d9483d57..047b00d03 100644 --- a/lib/node.c +++ b/lib/node.c @@ -186,6 +186,10 @@ int node_init(struct node *n, struct node_type *vt) if (ret) return ret; + ret = node_type(n)->init ? node_type(n)->init(n) : 0; + if (ret) + return ret; + n->state = STATE_INITIALIZED; list_push(&vt->instances, n);