mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
conf: Copy loadparm in virDomainDeviceInfoCopy()
Commit 54fa1b44afc8 added virDomainDeviceInfo::loadparm and updated virDomainDeviceInfoClear() accordingly, but omitted the necessary virDomainDeviceInfoCopy() changes. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
d672551816
commit
2503e4b03c
@ -3573,12 +3573,14 @@ virDomainDeviceInfoCopy(virDomainDeviceInfoPtr dst,
|
||||
/* first a shallow copy of *everything* */
|
||||
*dst = *src;
|
||||
|
||||
/* then redo the two fields that are pointers */
|
||||
/* then copy whatever's left */
|
||||
dst->alias = NULL;
|
||||
dst->romfile = NULL;
|
||||
dst->loadparm = NULL;
|
||||
|
||||
if (VIR_STRDUP(dst->alias, src->alias) < 0 ||
|
||||
VIR_STRDUP(dst->romfile, src->romfile) < 0)
|
||||
VIR_STRDUP(dst->romfile, src->romfile) < 0 ||
|
||||
VIR_STRDUP(dst->loadparm, src->loadparm) < 0)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user