diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-01-22 18:06:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-01-22 18:06:01 +1000 |
commit | a6b43386d6bbd196ee5357d26d5e338a26d8c8c2 (patch) | |
tree | c8a751814529d24ecf98bf0060cc68e7b4ffe801 | |
parent | f5a60d1d82a5ac91a07548a1a59865b5f8b7cad5 (diff) | |
download | libinput-a6b43386d6bbd196ee5357d26d5e338a26d8c8c2.tar.gz |
test: fix uninitialized variable
Found by coverity
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | test/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |