mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
qemuDomainObjPrivateAlloc: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
4bfc24fb87
commit
ecb5dd2a9b
@ -1788,8 +1788,7 @@ qemuDomainObjPrivateAlloc(void *opaque)
|
||||
if (!(priv->devs = virChrdevAlloc()))
|
||||
goto error;
|
||||
|
||||
if (!(priv->blockjobs = virHashNew(virObjectFreeHashData)))
|
||||
goto error;
|
||||
priv->blockjobs = virHashNew(virObjectFreeHashData);
|
||||
|
||||
/* agent commands block by default, user can choose different behavior */
|
||||
priv->agentTimeout = VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user