mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virsh: Fix a wrong check in cmdEcho()
What should be checked here is xmlbuf rather than buf.
This commit is contained in:
parent
3efbe13f4d
commit
0925ad4e28
@ -921,7 +921,7 @@ cmdEcho(vshControl *ctl, const vshCmd *cmd)
|
|||||||
|
|
||||||
if (xml) {
|
if (xml) {
|
||||||
virBufferEscapeString(&xmlbuf, "%s", arg);
|
virBufferEscapeString(&xmlbuf, "%s", arg);
|
||||||
if (virBufferError(&buf)) {
|
if (virBufferError(&xmlbuf)) {
|
||||||
vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
|
vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user