From 5a184d8d1edd2e6d08472f362f1467759df5a111 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Thu, 4 Apr 2019 11:45:08 +0200 Subject: [PATCH] path: added missing WITH_HOOKS statement to be able to compile without hooks, fixes #240 --- lib/path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/path.c b/lib/path.c index 096dcc1ea..7e5132ffe 100644 --- a/lib/path.c +++ b/lib/path.c @@ -125,10 +125,11 @@ int path_init(struct path *p) if (ret) return ret; +#ifdef WITH_HOOKS ret = hook_list_init(&p->hooks); if (ret) return ret; - +#endif p->_name = NULL; /* Default values */