This function can possibly fail.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
Fixes: 2e07a1e14635ad25c57b66c13488feff4c8d2b0c
---
src/util/virevent.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/util/virevent.c b/src/util/virevent.c
index 3477d63554..f6eb806faf 100644
--- a/src/util/virevent.c
+++ b/src/util/virevent.c
@@ -305,7 +305,8 @@ int virEventRegisterDefaultImpl(void)
{
VIR_DEBUG("registering default event implementation");
- virInitialize();
+ if (virInitialize() < 0)
+ return -1;
virResetLastError();
--
2.26.2