From 91a3a071329b9e47b99db2b38f724e860f7f86dc Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 15 Apr 2015 16:11:17 +0300 Subject: Use alloc0 to simplify further initialisation Change-Id: Ib333c2827a13927acd3cfcf28c200909d9d38685 Signed-off-by: Peter Lemenkov Reviewed-on: https://code.wireshark.org/review/8183 Reviewed-by: Alexis La Goutte --- epan/dissectors/packet-rtpproxy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'epan/dissectors') diff --git a/epan/dissectors/packet-rtpproxy.c b/epan/dissectors/packet-rtpproxy.c index 5d515b9711..b7c15634ac 100644 --- a/epan/dissectors/packet-rtpproxy.c +++ b/epan/dissectors/packet-rtpproxy.c @@ -409,11 +409,9 @@ rtpproxy_add_tid(gboolean is_request, tvbuff_t *tvb, packet_info *pinfo, proto_t if (!PINFO_FD_VISITED(pinfo)) { if (is_request){ - rtpproxy_info = wmem_new(wmem_file_scope(), rtpproxy_info_t); + rtpproxy_info = wmem_new0(wmem_file_scope(), rtpproxy_info_t); rtpproxy_info->req_frame = PINFO_FD_NUM(pinfo); - rtpproxy_info->resp_frame = 0; rtpproxy_info->req_time = pinfo->fd->abs_ts; - rtpproxy_info->callid = NULL; wmem_tree_insert_string(rtpproxy_conv->trans, cookie, rtpproxy_info, 0); } else { rtpproxy_info = (rtpproxy_info_t *)wmem_tree_lookup_string(rtpproxy_conv->trans, cookie, 0); -- cgit v1.2.3