From 16cbd5f278722d031e1c88fdc62ad2f6b005fffd Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 6 Feb 2019 13:12:55 +0100 Subject: [PATCH] node: properly initialize enable flag per node direction --- lib/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node.c b/lib/node.c index ca89cb55d..a4e7ec3cc 100644 --- a/lib/node.c +++ b/lib/node.c @@ -64,9 +64,10 @@ static int node_direction_init(struct node_direction *nd, struct node *n) { int ret; - nd->enabled = 0; + nd->enabled = 1; nd->vectorize = 1; nd->builtin = 1; + nd->hooks.state = STATE_DESTROYED; nd->signals.state = STATE_DESTROYED; @@ -109,7 +110,6 @@ static int node_direction_parse(struct node_direction *nd, struct node *n, json_ json_t *json_signals = NULL; nd->cfg = cfg; - nd->enabled = 1; ret = json_unpack_ex(cfg, &err, 0, "{ s?: o, s?: o, s?: i, s?: b, s?: b }", "hooks", &json_hooks,