Fix daemon hook script initialization

* daemon/libvirtd.c: we should error out only if virHookInitialize()
  return value is negative
This commit is contained in:
Daniel Veillard 2010-03-30 15:06:13 +02:00
parent 8bf6799b09
commit 0ec5cd0704

View File

@ -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;
}