aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-03-07 16:28:25 +0000
committerGerald Combs <gerald@wireshark.org>2006-03-07 16:28:25 +0000
commitac32d8875f1729685a9c0039e6077fd602aeb2ce (patch)
tree2757416eafd088a1dd735bee18651feabbe07a0d /epan/packet.c
parent3b2760d2df092062591a85b8c618bfca097346a3 (diff)
Initialize a return value. Found by Coverity.
Fix up whitespace. svn path=/trunk/; revision=17499
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 52821597d2..734011bd41 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -365,7 +365,7 @@ struct dissector_handle {
*
* The only time this function will return 0 is if it is a new style dissector
* and if the dissector rejected the packet.
- */
+ */
static int
call_dissector_through_handle(dissector_handle_t handle, tvbuff_t *tvb,
packet_info *pinfo, proto_tree *tree)
@@ -415,7 +415,7 @@ call_dissector_work(dissector_handle_t handle, tvbuff_t *tvb,
packet_info *volatile pinfo = pinfo_arg;
const char *saved_proto;
guint16 saved_can_desegment;
- volatile int ret;
+ volatile int ret = 0;
gboolean save_writable;
volatile address save_dl_src;
volatile address save_dl_dst;
@@ -463,7 +463,7 @@ call_dissector_work(dissector_handle_t handle, tvbuff_t *tvb,
if (pinfo->layer_names) {
if (pinfo->layer_names->len > 0)
g_string_append(pinfo->layer_names, ":");
- g_string_append(pinfo->layer_names,
+ g_string_append(pinfo->layer_names,
proto_get_protocol_filter_name(proto_get_id(handle->protocol)));
}
}
@@ -1789,7 +1789,7 @@ static guint num_of_postdissectors = 0;
void register_postdissector(dissector_handle_t handle) {
if (!post_dissectors)
post_dissectors = g_ptr_array_new();
-
+
g_ptr_array_add(post_dissectors, handle);
num_of_postdissectors++;
}