mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-10 04:58:12 -05:00
test: set 'type' field of virStorageSource
Set the type so that the iterators will work after upcoming modification.
This commit is contained in:
@@ -580,6 +580,7 @@ testPathRelativePrepare(void)
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < ARRAY_CARDINALITY(backingchain); i++) {
|
||||
backingchain[i].type = VIR_STORAGE_TYPE_FILE;
|
||||
if (i < ARRAY_CARDINALITY(backingchain) - 1)
|
||||
backingchain[i].backingStore = &backingchain[i + 1];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user