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 */