Il 11/03/2013 11:09, Osier Yang ha scritto:
>>
>> +    if (!STREQ(uri->scheme, scheme)) {
>> +        virReportError(VIR_ERR_INTERNAL_ERROR,
>> +                       _("Invalid transport/scheme '%s'"), uri->scheme);
>> +        goto error;
>> +    }
> 
> How about uri->scheme is "gluster", and scheme is "nbd"? The error
> doesn't reflect the truth then.
> 
> Except this and the coding style, all looks good.

The caller should guarantee that this does not happen.

Paolo

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to