aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pop.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2010-01-25 11:47:39 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2010-01-25 11:47:39 +0000
commit7d94bb0087c7583ca434b557cfcbd13ce5832032 (patch)
tree03dd1faf270372972f7c1da1e0b81875d16eae54 /epan/dissectors/packet-pop.c
parente967b6185bd635a2feb98b3d9b2d5619f62b225e (diff)
From Didier Gautheron via bug 4419:
se_alloc and ep_alloc never return NULL and se_alloc0 already initialized data with 0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31654 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-pop.c')
-rw-r--r--epan/dissectors/packet-pop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-pop.c b/epan/dissectors/packet-pop.c
index 5fcd6dc85c..18f1c9a848 100644
--- a/epan/dissectors/packet-pop.c
+++ b/epan/dissectors/packet-pop.c
@@ -175,10 +175,7 @@ dissect_pop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/*
* No - create one and attach it.
*/
- data_val = se_alloc(sizeof(struct pop_data_val));
- data_val->msg_request = FALSE;
- data_val->msg_read_len = 0;
- data_val->msg_tot_len = 0;
+ data_val = se_alloc0(sizeof(struct pop_data_val));
conversation_add_proto_data(conversation, proto_pop, data_val);
}