From 918745604573aea49d05d69e6a56158f872ab07d Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 15 Dec 2014 19:09:57 +0100 Subject: [PATCH] MP4: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang > 3.3 Change-Id: I0befc8846b9af43e1563adb369ba4d332775ef76 Reviewed-on: https://code.wireshark.org/review/5778 Reviewed-by: Martin Kaiser Tested-by: Martin Kaiser --- epan/dissectors/file-mp4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/file-mp4.c b/epan/dissectors/file-mp4.c index de00274d48..51e57f23a7 100644 --- a/epan/dissectors/file-mp4.c +++ b/epan/dissectors/file-mp4.c @@ -223,7 +223,7 @@ dissect_mp4_mvhd_body(tvbuff_t *tvb, gint offset, gint len _U_, vol = tvb_get_guint8(tvb, offset); fract_dec = tvb_get_guint8(tvb, offset+1); - rate += make_fract(fract_dec); + vol += make_fract(fract_dec); proto_tree_add_double_format_value(tree, hf_mp4_mvhd_vol, tvb, offset, 4, vol, "%f", vol); offset += 2;