[libvirt] [PATCH] tools: Fix a wrong check in cmdEcho()

What should be checked here is xmlbuf rather then buf. --- tools/virsh.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index bf2fbf8..ac354ac 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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; } -- 1.7.1

Ok. Thanks. 2013/9/17 Ján Tomko <jtomko@redhat.com>
On 09/17/2013 08:21 AM, Hongwei Bi wrote:
What should be checked here is xmlbuf rather then buf. --- tools/virsh.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
ACK
I've changed 'tools' to 'virsh' in the title and pushed it.
Jan
participants (3)
-
Hongwei Bi
-
hw bi
-
Ján Tomko