From ffdd1d68d9a8975f20d73637e4ff39bb64d00efb Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 12 May 2022 16:53:05 +0100 Subject: 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 Reviewed-by: Thanos Makatos --- test/unit-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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; -- cgit v1.1