aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-miop.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-05-20 15:44:25 +0000
committerBill Meier <wmeier@newsguy.com>2011-05-20 15:44:25 +0000
commitf3432a973c8bd979334674740903956c55e7cff9 (patch)
tree8decbb3e16d7182eeb1c189ee81e6d7ef0b74812 /epan/dissectors/packet-miop.c
parent4910bc142fcf8072e26179a4fe77c257ecc20225 (diff)
Don't assign to a proto_item* if the value won't be used:
Fixes Coverity 903,935,968,985,997,999,1024,1025,1134; Remove unneeded #includes; Do whitespace cleanup. svn path=/trunk/; revision=37331
Diffstat (limited to 'epan/dissectors/packet-miop.c')
-rw-r--r--epan/dissectors/packet-miop.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-miop.c b/epan/dissectors/packet-miop.c
index d5d825ce58..a83e9a7b4d 100644
--- a/epan/dissectors/packet-miop.c
+++ b/epan/dissectors/packet-miop.c
@@ -34,9 +34,8 @@
# include "config.h"
#endif
-#include <glib.h>
-
#include <epan/packet.h>
+
#include <epan/emem.h>
#include <epan/expert.h>
@@ -207,8 +206,8 @@ static void dissect_miop (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree
ep_strbuf_append_printf(flags_strbuf, "%s%s",
flags_strbuf->len ? ", " : "", "last message");
}
- ti = proto_tree_add_uint_format_value(miop_tree, hf_miop_flags, tvb, offset, 1,
- flags, "0x%02x (%s)", flags, flags_strbuf->str);
+ proto_tree_add_uint_format_value(miop_tree, hf_miop_flags, tvb, offset, 1,
+ flags, "0x%02x (%s)", flags, flags_strbuf->str);
offset++;
proto_tree_add_item(miop_tree, hf_miop_packet_length, tvb, offset, 2, little_endian);
offset += 2;