mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Add OOM error reporting to a few fucntions
They report errors in all other cases.
This commit is contained in:
parent
e12b8000c8
commit
c997e45408
@ -223,7 +223,7 @@ static virCommandPtr lxcContainerBuildInitCmd(virDomainDefPtr vmDef,
|
||||
}
|
||||
virBufferTrim(&buf, NULL, 1);
|
||||
|
||||
if (virBufferError(&buf))
|
||||
if (virBufferCheckError(&buf) < 0)
|
||||
return NULL;
|
||||
|
||||
virUUIDFormat(vmDef->uuid, uuidstr);
|
||||
|
@ -2686,7 +2686,7 @@ virQEMUCapsSaveCache(virQEMUCapsPtr qemuCaps, const char *filename)
|
||||
virBufferAdjustIndent(&buf, -2);
|
||||
virBufferAddLit(&buf, "</qemuCaps>\n");
|
||||
|
||||
if (virBufferError(&buf))
|
||||
if (virBufferCheckError(&buf) < 0)
|
||||
goto cleanup;
|
||||
|
||||
xml = virBufferContentAndReset(&buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user