From 992f2b4e32dd0f0865e2732ea70f93417abccb3a Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Fri, 13 May 2011 08:27:59 +0200 Subject: [PATCH] virsh: Fix uninitialized variable warning Reported on FreeBSD only. --- tools/virsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh.c b/tools/virsh.c index fbeb7c88f0..3baa0152f8 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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]";