mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-31 08:38:16 -05:00
virsh: Fix uninitialized variable warning
Reported on FreeBSD only.
This commit is contained in:
+1
-1
@@ -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]";
|
||||
|
||||
Reference in New Issue
Block a user