From d734eb82b43b1be726f0362bf8a97cd73aa2579b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 25 Sep 2018 20:29:05 +0200 Subject: [PATCH] node: fix assertion in node_init() --- lib/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.c b/lib/node.c index 047b00d03..3a8b6298f 100644 --- a/lib/node.c +++ b/lib/node.c @@ -186,7 +186,7 @@ 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; + ret = vt->init ? vt->init(n) : 0; if (ret) return ret;