diff options
author | John Levon <john.levon@nutanix.com> | 2020-12-09 16:20:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 16:20:06 +0000 |
commit | becb165b321b66fa3465d0d4a6d74316044188b4 (patch) | |
tree | e4fbacf7d12d2d0944b87518b8212be6c0092d38 | |
parent | 47bf082cf9e5f22b5f629d56ead02458dcb292b2 (diff) | |
download | libvfio-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>
-rw-r--r-- | test/unit-tests.c | 2 |
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 |