diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-03-17 19:23:09 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-03-17 19:23:09 +0000 |
commit | b31873a5bdddd33d7b155addc0867c8599d89b14 (patch) | |
tree | 28416f823fb04ecc44fcdbf13d49f2217d940d7c /epan/dissectors/packet-tipc.c | |
parent | f311e3ca6410d92ece86c1f9ca94291d7aaa1ea7 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48367
Diffstat (limited to 'epan/dissectors/packet-tipc.c')
-rw-r--r-- | epan/dissectors/packet-tipc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tipc.c b/epan/dissectors/packet-tipc.c index 277f98bc20..ae4f961e4b 100644 --- a/epan/dissectors/packet-tipc.c +++ b/epan/dissectors/packet-tipc.c @@ -818,7 +818,7 @@ w9:| msg count | link tolerance | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ -static void +static int dissect_tipc_v2_internal_msg(tvbuff_t *tipc_tvb, proto_tree *tipc_tree, packet_info *pinfo, int offset, guint8 user, guint32 msg_size, guint8 orig_hdr_size) { guint32 dword; @@ -1408,7 +1408,6 @@ dissect_tipc_v2_internal_msg(tvbuff_t *tipc_tvb, proto_tree *tipc_tree, packet_i " (Message fragment %u)", frag_no); } if (new_tvb) { /* take it all */ - data_tvb = new_tvb; /* the info column shall not be deleted by the * encapsulated messages */ @@ -1502,6 +1501,8 @@ w9:| | break; } + return offset; + } /* Version 2 Header |