diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-02-18 22:43:48 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-02-18 22:43:48 +0000 |
commit | a6bbdaa8495fe13077dbe35b0f5fb7806e66342d (patch) | |
tree | 6328f7905a2f7caf857cbf0126613a0889845c7c /epan/dissectors/packet-enttec.c | |
parent | aaeca955a50d70ff393d847e44e4142991a1324e (diff) |
Fix some dead code and zero division issues found by Clang scan-build.
In convert_string_case() use g_utf8_strup() instead of converting each
character by hand. Hopefully this won't cause any unexpected changes in
behavior.
svn path=/trunk/; revision=36006
Diffstat (limited to 'epan/dissectors/packet-enttec.c')
-rw-r--r-- | epan/dissectors/packet-enttec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-enttec.c b/epan/dissectors/packet-enttec.c index 62fa58e1dd..85752ac90b 100644 --- a/epan/dissectors/packet-enttec.c +++ b/epan/dissectors/packet-enttec.c @@ -268,7 +268,7 @@ dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree) } - if (type == ENTTEC_DATA_TYPE_DMX || type == ENTTEC_DATA_TYPE_RLE) { + if ((type == ENTTEC_DATA_TYPE_DMX || type == ENTTEC_DATA_TYPE_RLE) && global_disp_col_count > 0) { hi = proto_tree_add_item(tree, hf_enttec_dmx_data_data, tvb, |