From 6cc4f6b8eab4158ce684a332e822c834f0c4de23 Mon Sep 17 00:00:00 2001 From: Sonja Kolen Date: Wed, 22 Aug 2018 16:41:26 +0200 Subject: [PATCH] node: fixed unused variable to build with disabled hooks --- lib/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node.c b/lib/node.c index 2c7759564..5d9483d57 100644 --- a/lib/node.c +++ b/lib/node.c @@ -71,7 +71,7 @@ static int node_direction_init(struct node_direction *nd, struct node *n) static int node_direction_destroy(struct node_direction *nd, struct node *n) { - int ret; + int ret = 0; #ifdef WITH_HOOKS ret = list_destroy(&nd->hooks, (dtor_cb_t) hook_destroy, true); @@ -79,7 +79,7 @@ static int node_direction_destroy(struct node_direction *nd, struct node *n) return ret; #endif - return 0; + return ret; } static int node_direction_parse(struct node_direction *nd, struct node *n, json_t *cfg)