On 08/20/2013 11:01 AM, John Ferlan wrote:
The following resolves Coverity's complaint and keeps things safer:
- for (i = 0; i < nr_nodes; i++)
+ for (i = 0; cpus && i < nr_nodes; i++)
Pre-approved ACK if you want to work that into a formal patch.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org