Rémi Bernon : server: Move hooks struct initialization within add_hook.