aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-03-31 18:10:45 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-03-31 18:10:45 +0000
commit5ae86d3b2ff3344b6306ca35acc1c21c3b56642a (patch)
tree7df8052d7355d1c10b6c37152fb26efddab3ca5e
parent61cad5a8e2675dc6d23cf3ed50bfda5cf1150a1e (diff)
coverity 281315 logically dead code
svn path=/trunk/; revision=48676
-rw-r--r--epan/dissectors/packet-tds.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index 7c86cf7066..322ad7de75 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -997,18 +997,13 @@ dissect_tds_query_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, td
static void
dissect_tds5_lang_token(tvbuff_t *tvb, guint offset, guint len, proto_tree *tree) {
- gboolean is_unicode = FALSE;
char *msg;
proto_tree_add_text(tree, tvb, offset, 1 , "Status: %u", tvb_get_guint8(tvb, offset));
offset += 1;
len -= 1;
- if (is_unicode)
- msg = tvb_get_ephemeral_unicode_string(tvb, offset, len, ENC_LITTLE_ENDIAN);
- else
- msg = (gchar*)tvb_get_ephemeral_string(tvb, offset, len);
-
+ msg = (gchar*)tvb_get_ephemeral_string(tvb, offset, len);
proto_tree_add_text(tree, tvb, offset, len, "Language text: %s", msg);
}