mirror of https://gitee.com/openkylin/libvirt.git
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