aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pop.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-01-25 11:47:39 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-01-25 11:47:39 +0000
commitc198fc65462567cf87c914dc7eff758f18680297 (patch)
tree03dd1faf270372972f7c1da1e0b81875d16eae54 /epan/dissectors/packet-pop.c
parent17a01968d9904dcf2d4a35568755866cec7224ca (diff)
From Didier Gautheron via bug 4419:
se_alloc and ep_alloc never return NULL and se_alloc0 already initialized data with 0. svn path=/trunk/; revision=31654
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);
}