diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-20 18:56:11 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-20 18:56:11 +0000 |
commit | 57bd2d59f5fc9836b4560a4564440d4fcac00f5e (patch) | |
tree | 40bfd91ae03d273aa0c527801d18c87ae20dfe38 /epan/dissectors/packet-assa_r3.c | |
parent | d9e7bdd1418842ea15117200a2fb65738ecd9803 (diff) |
Fix the dead initialization warnings found by clang's static analysis
("Value stored to 'xxx' during its initialization is never read")
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35598 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-assa_r3.c')
-rw-r--r-- | epan/dissectors/packet-assa_r3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-assa_r3.c b/epan/dissectors/packet-assa_r3.c index 12797dc789..9b0faac01c 100644 --- a/epan/dissectors/packet-assa_r3.c +++ b/epan/dissectors/packet-assa_r3.c @@ -5497,8 +5497,8 @@ static gint dissect_r3_command (tvbuff_t *tvb, guint32 start_offset, guint32 len proto_item *cmd_item = NULL; proto_tree *cmd_tree = NULL; const gchar *cn = NULL; - guint8 cmdLen = tvb_get_guint8 (tvb, start_offset + 0); - guint8 cmd = tvb_get_guint8 (tvb, start_offset + 1); + guint8 cmdLen; + guint8 cmd; tvb_ensure_bytes_exist (tvb, start_offset, 2); |