Initialize "value" in _tvb_get_bits64(). Clean up indentation.

svn path=/trunk/; revision=41228
This commit is contained in:
Guy Harris 2012-02-28 18:31:19 +00:00
parent 294e0e98f6
commit b474b4006c
1 changed files with 2 additions and 1 deletions

View File

@ -1778,7 +1778,8 @@ _tvb_get_bits64(tvbuff_t *tvb, gint bit_offset, const gint total_no_of_bits)
guint8 remaining_bit_length = total_no_of_bits;
/* get the bits up to the first octet boundary */
required_bits_in_first_octet %= 8;
value = 0;
required_bits_in_first_octet %= 8;
if(required_bits_in_first_octet != 0)
{
value = tvb_get_guint8(tvb, octet_offset) & bit_mask8[required_bits_in_first_octet];