On 2015/3/12 15:07, Michael Tokarev wrote:
> 12.03.2015 06:59, arei.gong...@huawei.com wrote:
>> +++ b/ui/vnc.c
>> @@ -3698,8 +3698,13 @@ QemuOpts *vnc_parse_func(const char *str)
>>  {
>>      QemuOptsList *olist = qemu_find_opts("vnc");
>>      QemuOpts *opts = qemu_opts_parse(olist, str, 1);
>> -    const char *id = qemu_opts_id(opts);
>> +    const char *id = NULL;
> 
> Useless initializer.
> 
Okay, will fix, thanks.

Regards,
-Gonglei
> /mjt
> 
>> +    if (!opts) {
>> +        return NULL;
>> +    }
>> +
>> +    id = qemu_opts_id(opts);
> 



Reply via email to