From 8fdeefe1df9c4016b6b50bf5aa08acd5abf01d57 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 12 Oct 2017 20:45:50 +0200 Subject: [PATCH] test: set 'type' field of virStorageSource Set the type so that the iterators will work after upcoming modification. --- tests/virstoragetest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index ffebd4dc1d..ad4514871a 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -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