virt-aa-helper wasn't running virErrorInitialize

This turns out to be working by magic but needs to be fixed.
This commit is contained in:
Cédric Bosdonnat 2014-11-20 11:31:44 +01:00
parent 742d49fa17
commit 22221233d0

View File

@ -1251,6 +1251,12 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
}
if (virThreadInitialize() < 0 ||
virErrorInitialize() < 0) {
fprintf(stderr, _("%s: initialization failed\n"), argv[0]);
exit(EXIT_FAILURE);
}
/* clear the environment */
environ = NULL;
if (setenv("PATH", "/sbin:/usr/sbin", 1) != 0)