From f0d31caa3955365f6a393d788831f4b53fade000 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Sat, 4 Jan 2014 11:51:14 -0500 Subject: Fix parse_bool tests. --- src/bitfield/bitfield.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bitfield/bitfield.c') diff --git a/src/bitfield/bitfield.c b/src/bitfield/bitfield.c index dddb0ee2..e40ab1ab 100644 --- a/src/bitfield/bitfield.c +++ b/src/bitfield/bitfield.c @@ -38,6 +38,7 @@ uint64_t get_bitfield(const uint8_t source[], const uint8_t source_length, uint64_t whole; uint8_t bytes[sizeof(uint64_t)]; } combined; + memset(combined.bytes, 0, sizeof(combined.bytes)); copy_bits_right_aligned(source, source_length, offset, bit_count, combined.bytes, sizeof(combined.bytes)); if(BYTE_ORDER == LITTLE_ENDIAN) { -- cgit 1.2.3-korg