1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

test: set 'type' field of virStorageSource

Set the type so that the iterators will work after upcoming
modification.
This commit is contained in:
Peter Krempa 2017-10-12 20:45:50 +02:00
parent ee4d2df87d
commit 8fdeefe1df

View File

@ -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