mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +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);
|
virBufferTrim(&buf, NULL, 1);
|
||||||
|
|
||||||
if (virBufferError(&buf))
|
if (virBufferCheckError(&buf) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
virUUIDFormat(vmDef->uuid, uuidstr);
|
virUUIDFormat(vmDef->uuid, uuidstr);
|
||||||
|
@ -2686,7 +2686,7 @@ virQEMUCapsSaveCache(virQEMUCapsPtr qemuCaps, const char *filename)
|
|||||||
virBufferAdjustIndent(&buf, -2);
|
virBufferAdjustIndent(&buf, -2);
|
||||||
virBufferAddLit(&buf, "</qemuCaps>\n");
|
virBufferAddLit(&buf, "</qemuCaps>\n");
|
||||||
|
|
||||||
if (virBufferError(&buf))
|
if (virBufferCheckError(&buf) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
xml = virBufferContentAndReset(&buf);
|
xml = virBufferContentAndReset(&buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user