mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Move 'done' label in qemuBuildControllerDevStr()
Even when we skip part of the processing, we still want error checking on the buffer. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
@@ -2801,10 +2801,10 @@ qemuBuildControllerDevStr(const virDomainDef *domainDef,
|
||||
if (qemuBuildDeviceAddressStr(&buf, domainDef, &def->info, qemuCaps) < 0)
|
||||
goto error;
|
||||
|
||||
done:
|
||||
if (virBufferCheckError(&buf) < 0)
|
||||
goto error;
|
||||
|
||||
done:
|
||||
*devstr = virBufferContentAndReset(&buf);
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user