]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: return correct value from cmdDomIfGetLink
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Dec 2011 09:09:59 +0000 (10:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 9 Dec 2011 11:20:18 +0000 (12:20 +0100)
Reported by Alex Jia <ajia@redhat.com>. Function cmdDomIfGetLink did not
set a success return value on success path.

Signed-off-by: Alex Jia<ajia@redhat.com>
tools/virsh.c

index 4262d60ec743761b6c50221ab6034ba056379f43..90ff5874f15619dfa6d22a6f0c4ff31e7321a114 100644 (file)
@@ -1568,6 +1568,7 @@ hit:
     /* attribute not found */
     vshPrint(ctl, "%s default", iface);
 
+    ret = true;
 cleanup:
     xmlXPathFreeObject(obj);
     xmlXPathFreeContext(ctxt);