]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix URI connect precedence
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 21 Aug 2013 09:02:42 +0000 (11:02 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 22 Aug 2013 07:54:41 +0000 (09:54 +0200)
commita0b6a36f9456dae895f50d344fd2d38be1167c58
tree8015ace8c04cacc18b6e3c0a5e06d0a410770fc4
parent23263af678887d60aa0fc973047e23a61d8b003f
Fix URI connect precedence

Commit abfff210 changed the order of vshParseArgv() and vshInit() in
order to make fix debugging of parameter parsing.  However, vshInit()
did a vshReconnect() even though ctl->name wasn't set according to the
'-c' parameter yet.  In order to keep both issues fixed, I've split
the vshInit() into vshInitDebug() and vshInit().

One simple memleak of ctl->name is fixed as a part of this patch,
since it is related to the issue it's fixing.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=999323
tools/virsh.c