virsh: Fix uninitialized variable warning

Reported on FreeBSD only.
This commit is contained in:
Matthias Bolte 2011-05-13 08:27:59 +02:00
parent 0ec289a469
commit 992f2b4e32

View File

@ -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]";