[libvirt] [PATCH] qemudDomainAttachSCSIDisk: handle empty controller list

Eric Blake eblake at redhat.com
Tue Mar 2 17:41:32 UTC 2010

According to Jim Meyering on 3/2/2010 9:54 AM:
> It's easier/better here just to handle the potential trouble:
> * src/qemu/qemu_driver.c (qemudDomainAttachSCSIDisk): Handle
> the (theoretical) case of an empty controller list, so that
> clang does not think the subsequent dereference of "cont"
> would dereference an undefined variable (due to preceding
> loop not iterating even once).


Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 320 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100302/8c5ad4ef/attachment-0001.sig>

More information about the libvir-list mailing list