[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] virsh: fix logic bug



Bug introduced in commit 9a0ec36.

* tools/virsh.c (cmdUndefine): Add missing line.
---

Pushing under the trivial rule.

 tools/virsh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 070d461..f995ae6 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -1449,6 +1449,7 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd)
         return false;

     if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
+        return false;

     has_managed_save = virDomainHasManagedSaveImage(dom, 0);
     if (has_managed_save < 0) {
-- 
1.7.4.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]