mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-01 20:05:46 +00:00
qemu: Fix return check on virHashAddEntry call
Luckily it only returns 0 or -1
This commit is contained in:
parent
304e0f6d16
commit
1f8528c2b8
@ -1300,7 +1300,7 @@ qemuSharedDeviceEntryInsert(virQEMUDriverPtr driver,
|
||||
|
||||
entry->ref = 1;
|
||||
|
||||
if (virHashAddEntry(driver->sharedDevices, key, entry))
|
||||
if (virHashAddEntry(driver->sharedDevices, key, entry) < 0)
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user