]> xenbits.xensource.com Git - libvirt.git/commit
Fix virDomainDeviceInfoIsSet() to check all struct fields
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 15 May 2012 15:16:49 +0000 (16:16 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 15 May 2012 16:07:34 +0000 (17:07 +0100)
commit2c195fdbf3293792e39bc4f06755ae751025b0ea
treea04eb18c0c2bed777f0351d7e13675cd229a0b55
parentb3567ef37c29f293cce982e7bb52d2b4e51438ab
Fix virDomainDeviceInfoIsSet() to check all struct fields

The virDomainDeviceInfoIsSet API was only checking if an
address or alias was set in the struct. Thus if only a
rom bar setting / filename, boot index, or USB master
value was set, they could be accidentally dropped when
formatting XML
src/conf/domain_conf.c
src/conf/domain_conf.h