From 88bb44a51e350c9749323242482dc5e944697d8f Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Sun, 25 Oct 2009 11:43:30 +0000 Subject: From Jakub Zawadzki: Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=30691 --- epan/dissectors/packet-xtp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'epan/dissectors/packet-xtp.c') diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c index 1c153c078a..88b9586bb7 100644 --- a/epan/dissectors/packet-xtp.c +++ b/epan/dissectors/packet-xtp.c @@ -657,8 +657,7 @@ dissect_xtp_ecntl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, return; } /* spans(16n) */ - spans = ep_alloc(spans_len); - memset(spans, 0, spans_len); + spans = ep_alloc0(spans_len); p = spans; for (i = 0; i < ecntl->nspan*2; i++) { guint64 span = tvb_get_ntohl(tvb, offset); -- cgit v1.2.3