aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index d81d2ad..ab45914 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -329,7 +329,7 @@ static void
test_realize_ctx(void **state __attribute__((unused)))
{
vfu_reg_info_t *cfg_reg;
- vfu_reg_info_t reg_info[VFU_PCI_DEV_NUM_REGIONS + 1] = { 0 };
+ vfu_reg_info_t reg_info[VFU_PCI_DEV_NUM_REGIONS + 1] = { { 0 } };
vfu_ctx_t vfu_ctx = {
.reg_info = reg_info,
.nr_regions = VFU_PCI_DEV_NUM_REGIONS + 1