]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemudDomainAttachSCSIDisk: handle empty controller list
authorJim Meyering <meyering@redhat.com>
Tue, 2 Mar 2010 16:45:10 +0000 (17:45 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 5 Mar 2010 17:42:30 +0000 (18:42 +0100)
commitf5a6ce44ce8368d4183b69a31b77f67688d9af43
tree24e5abba0a390234d7a0a3c9de36280dd838bcbb
parent1a4d5c9543641c444dccd682f6256ee3faf22a80
qemudDomainAttachSCSIDisk: handle empty controller list

* 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).
src/qemu/qemu_driver.c