From a6b43386d6bbd196ee5357d26d5e338a26d8c8c2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 22 Jan 2016 18:06:01 +1000 Subject: [PATCH] test: fix uninitialized variable Found by coverity Signed-off-by: Peter Hutterer --- test/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/misc.c b/test/misc.c index 4e37007a..5ae87a07 100644 --- a/test/misc.c +++ b/test/misc.c @@ -442,7 +442,7 @@ START_TEST(bitfield_helpers) * test: 0, 1, 7, 8, 31, 32, and 33 */ unsigned char read_bitfield[] = { 0x83, 0x1, 0x0, 0x80, 0x3 }; - unsigned char write_bitfield[ARRAY_LENGTH(read_bitfield)]; + unsigned char write_bitfield[ARRAY_LENGTH(read_bitfield)] = {0}; size_t i; /* Now check that the bitfield we wrote to came out to be the same as