mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +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) {
|
||||
virBufferEscapeString(&xmlbuf, "%s", arg);
|
||||
if (virBufferError(&buf)) {
|
||||
if (virBufferError(&xmlbuf)) {
|
||||
vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user