mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00: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:
parent
82e43ae164
commit
3424de6288
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user