aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-09 16:20:06 +0000
committerGitHub <noreply@github.com>2020-12-09 16:20:06 +0000
commitbecb165b321b66fa3465d0d4a6d74316044188b4 (patch)
treee4fbacf7d12d2d0944b87518b8212be6c0092d38 /test
parent47bf082cf9e5f22b5f629d56ead02458dcb292b2 (diff)
downloadlibvfio-user-becb165b321b66fa3465d0d4a6d74316044188b4.zip
libvfio-user-becb165b321b66fa3465d0d4a6d74316044188b4.tar.gz
libvfio-user-becb165b321b66fa3465d0d4a6d74316044188b4.tar.bz2
unit tests: fix gcc4 build (#182)
Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
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