mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Make vshDebug work when parsing parameters
The vshInit initializes ctl->debug by which vshDebug (which is also called in vshParseArgv) decides whether to print out the message or not.
This commit is contained in:
parent
cc78d7ba0e
commit
abfff21006
@ -3100,12 +3100,12 @@ main(int argc, char **argv)
|
||||
ctl->name = vshStrdup(ctl, defaultConn);
|
||||
}
|
||||
|
||||
if (!vshParseArgv(ctl, argc, argv)) {
|
||||
if (!vshInit(ctl)) {
|
||||
vshDeinit(ctl);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (!vshInit(ctl)) {
|
||||
if (!vshParseArgv(ctl, argc, argv)) {
|
||||
vshDeinit(ctl);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user