[libvirt] [PATCH] Fix warning about using an uninitialized next_unit value
Jiri Denemark
jdenemar at redhat.com
Mon Jun 3 11:55:17 UTC 2013
On Mon, Jun 03, 2013 at 18:32:15 +0800, Osier Yang wrote:
> On 03/06/13 18:22, Jiri Denemark wrote:
> > Using an uninitialized value and a bool saying if the value is valid may
> > confuse compilators.
...
> This statement still uses the bool variable "found":
>
> hostdev->info->addr.drive.controller = found ?
> def->controllers[i - 1]->idx :
> nscsi_controllers;
>
Heh, I should have looked at the compilation result before sending this
patch :-) V2 is on the way.
Jirka
More information about the libvir-list
mailing list