diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 4bdf4e261d..208ffcacb0 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -3150,7 +3150,7 @@ int main(int argc, char **argv) { } /* setup the hooks if any */ - if (virHookInitialize()) { + if (virHookInitialize() < 0) { ret = VIR_DAEMON_ERR_HOOKS; goto error; }