aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtpproxy.c
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2015-04-15 16:11:17 +0300
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-04-24 16:23:25 +0000
commit91a3a071329b9e47b99db2b38f724e860f7f86dc (patch)
tree6b2b14feee0b5a051287463c0fa6b776ca69065a /epan/dissectors/packet-rtpproxy.c
parent49fbb788fc74c12a5af775403d7410f7b3946092 (diff)
Use alloc0 to simplify further initialisation
Change-Id: Ib333c2827a13927acd3cfcf28c200909d9d38685 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://code.wireshark.org/review/8183 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rtpproxy.c')
-rw-r--r--epan/dissectors/packet-rtpproxy.c4
1 files changed, 1 insertions, 3 deletions
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);