mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 09:57:26 +03:00
util: event: check return value of virInitialize
This function can possibly fail. Signed-off-by: Ján Tomko <jtomko@redhat.com> Fixes: 2e07a1e14635ad25c57b66c13488feff4c8d2b0c Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
02552c2d1e
commit
a95fc75627
@ -305,7 +305,8 @@ int virEventRegisterDefaultImpl(void)
|
||||
{
|
||||
VIR_DEBUG("registering default event implementation");
|
||||
|
||||
virInitialize();
|
||||
if (virInitialize() < 0)
|
||||
return -1;
|
||||
|
||||
virResetLastError();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user