mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +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);
|
ctl->name = vshStrdup(ctl, defaultConn);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vshParseArgv(ctl, argc, argv)) {
|
if (!vshInit(ctl)) {
|
||||||
vshDeinit(ctl);
|
vshDeinit(ctl);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vshInit(ctl)) {
|
if (!vshParseArgv(ctl, argc, argv)) {
|
||||||
vshDeinit(ctl);
|
vshDeinit(ctl);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user