diff options
author | John Levon <john.levon@nutanix.com> | 2022-05-12 16:53:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 16:53:05 +0100 |
commit | ffdd1d68d9a8975f20d73637e4ff39bb64d00efb (patch) | |
tree | dea91978d255e8f640fb94a980fa69701c0cdfc2 /test | |
parent | 294aa666fe09a8b6ca133201c7593c54d3cab6e8 (diff) | |
download | libvfio-user-ffdd1d68d9a8975f20d73637e4ff39bb64d00efb.zip libvfio-user-ffdd1d68d9a8975f20d73637e4ff39bb64d00efb.tar.gz libvfio-user-ffdd1d68d9a8975f20d73637e4ff39bb64d00efb.tar.bz2 |
run scan-build in CI (#680)
Yet another static analyzer pass, this one is used by SPDK, and as it
did detect some minor issues, it's worth running.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-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 81288e2..7d5297e 100644 --- a/test/unit-tests.c +++ b/test/unit-tests.c @@ -314,8 +314,8 @@ static void test_dma_addr_to_sg(void **state UNUSED) { dma_memory_region_t *r, *r1; + struct iovec iov[2] = { }; dma_sg_t sg[2]; - struct iovec iov[2]; int ret; vfu_ctx.dma->nregions = 1; |