mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55: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) {
|
if (def->opts) {
|
||||||
const vshCmdOptDef *opt;
|
const vshCmdOptDef *opt;
|
||||||
for (opt = def->opts; opt->name; opt++) {
|
for (opt = def->opts; opt->name; opt++) {
|
||||||
const char *fmt;
|
const char *fmt = "%s";
|
||||||
switch (opt->type) {
|
switch (opt->type) {
|
||||||
case VSH_OT_BOOL:
|
case VSH_OT_BOOL:
|
||||||
fmt = "[--%s]";
|
fmt = "[--%s]";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user