]> xenbits.xensource.com Git - libvirt.git/commit
conf: Make really sure we don't access non-existing vCPUs again
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 12 Jul 2016 11:44:10 +0000 (13:44 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Jul 2016 16:55:50 +0000 (17:55 +0100)
commit05f89657eed52550050f9308bb7cb8d56dde9cd0
tree1b0a0fbdfb0685419ab993188d99e0a178778967
parentffc49e579c14b1d3f24af8d004ded6e3a0e8900f
conf: Make really sure we don't access non-existing vCPUs again

MinGW complained that we might be dereferencing a NULL pointer.  While
that can't be true, the logic certainly allows for that.

../../src/conf/domain_conf.c: In function 'virDomainDefPostParse':
../../src/conf/domain_conf.c:4224:18: error: potential null pointer dereference [-Werror=null-dereference]
         if (!vcpu->online && vcpu->cpumask) {
              ~~~~^~~~~~~~

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/domain_conf.c