mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
virsh: Fix uninitialized variable warning
Reported on FreeBSD only.
This commit is contained in:
parent
0ec289a469
commit
992f2b4e32
@ -11131,7 +11131,7 @@ vshCmddefHelp(vshControl *ctl, const char *cmdname)
|
||||
if (def->opts) {
|
||||
const vshCmdOptDef *opt;
|
||||
for (opt = def->opts; opt->name; opt++) {
|
||||
const char *fmt;
|
||||
const char *fmt = "%s";
|
||||
switch (opt->type) {
|
||||
case VSH_OT_BOOL:
|
||||
fmt = "[--%s]";
|
||||
|
Loading…
x
Reference in New Issue
Block a user