virsh: fix dead store

Two copy-and-paste bugs in a row.  :(

* tools/virsh.c (cmdUndefine): Also avoid dead store.
This commit is contained in:
Eric Blake 2011-08-12 12:07:39 -06:00
parent 2cc1ad61c7
commit e08adab31d

View File

@ -1445,9 +1445,6 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd)
if (!vshConnectionUsability(ctl, ctl->conn))
return false;
if (vshCommandOptString(cmd, "domain", &name) <= 0)
return false;
if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
return false;