]> git.ipfire.org Git - thirdparty/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)
committerCole Robinson <crobinso@redhat.com>
Fri, 15 Jun 2012 14:58:24 +0000 (10:58 -0400)
commitb4e9a21c3b568ad4aeed6e90506f6c58172c5b77
tree6796b570562b56f5cf820f09a9ea8f1e64de086e
parent8bd5c79224ff4fa6c288d64feca1af944e2ab739
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
(cherry picked from commit 2c195fdbf3293792e39bc4f06755ae751025b0ea)

Conflicts:

src/conf/domain_conf.c

(crobinso: some elements aren't in maint branch, drop them)
src/conf/domain_conf.c
src/conf/domain_conf.h