aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-02-28 18:31:19 +0000
committerGuy Harris <guy@alum.mit.edu>2012-02-28 18:31:19 +0000
commitb474b4006c9ccc3dc7c09567701ba22724382746 (patch)
treec89b09774da1608b45717b0204eb5357a41ee06b /epan/tvbuff.c
parent294e0e98f6eee54c1dae8524e04c21967c2b18f7 (diff)
Initialize "value" in _tvb_get_bits64(). Clean up indentation.
svn path=/trunk/; revision=41228
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 5a630deef9..a1ce44611d 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -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];