Re: [PATCH] virsh: Fix uninitialized variable warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/5/13 Daniel P. Berrange <berrange@xxxxxxxxxx>:
> On Fri, May 13, 2011 at 08:29:00AM +0200, Matthias Bolte wrote:
>> Reported on FreeBSD only.
>> ---
>> Âtools/virsh.c | Â Â2 +-
>> Â1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/tools/virsh.c b/tools/virsh.c
>> index fbeb7c8..3baa015 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]";
> ACK
>
>
> Daniel
>

Thanks, pushed.

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]