aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2011-11-06 19:02:36 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2011-11-06 19:02:36 +0000
commit0ec187967eb7c9f4dacd3941a4101d2dfa82ed4d (patch)
tree3bad09fc639745282c11e8a244a76d3e43fc54e4 /epan
parent0352ac8e8fd18aae9e6d84a13af33a9500c5317c (diff)
From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6545
DVB-CI / CI+ fix clang warning about unused variable svn path=/trunk/; revision=39745
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-dvbci.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dvbci.c b/epan/dissectors/packet-dvbci.c
index ceeeb4d4e9..ff0cb5fa4f 100644
--- a/epan/dissectors/packet-dvbci.c
+++ b/epan/dissectors/packet-dvbci.c
@@ -3003,7 +3003,6 @@ dissect_dvbci_payload_opp(guint32 tag, gint len_field _U_,
guint8 cap_loop_len;
gboolean info_valid;
guint8 char_tbl;
- guint8 prof_name_len;
guint8 sig_strength, sig_qual;
proto_item *pi;
@@ -3071,9 +3070,7 @@ dissect_dvbci_payload_opp(guint32 tag, gint len_field _U_,
proto_tree_add_item(tree, hf_dvbci_opp_lang_code,
tvb, offset, 3, ENC_ASCII|ENC_NA);
offset += 3;
- prof_name_len = tvb_get_guint8(tvb, offset);
- /* don't increment offset here, leave it on the len byte,
- hf_dvbci_prof_name is an FT_UINT_STRING */
+ /* hf_dvbci_prof_name is an FT_UINT_STRING, one leading len byte */
proto_tree_add_item(tree, hf_dvbci_prof_name,
tvb, offset, 1, ENC_ASCII|ENC_NA);
break;