From 0df5a9390d41149dfc87440d72e7669ba96748ec Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Wed, 20 Mar 2013 01:18:10 +0000 Subject: From beroset: remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438 --- epan/asn1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/asn1.c') diff --git a/epan/asn1.c b/epan/asn1.c index 048a3b068a..6f0e20ca6f 100644 --- a/epan/asn1.c +++ b/epan/asn1.c @@ -65,7 +65,7 @@ void asn1_ctx_clean_epdv(asn1_ctx_t *actx) { void asn1_stack_frame_push(asn1_ctx_t *actx, const gchar *name) { asn1_stack_frame_t *frame; - frame = ep_alloc0(sizeof(asn1_stack_frame_t)); + frame = ep_new0(asn1_stack_frame_t); frame->name = name; frame->next = actx->stack; actx->stack = frame; @@ -113,7 +113,7 @@ static asn1_par_t *push_new_par(asn1_ctx_t *actx) { DISSECTOR_ASSERT(actx->stack); - par = ep_alloc0(sizeof(asn1_par_t)); + par = ep_new0(asn1_par_t); pp = &(actx->stack->par); while (*pp) -- cgit v1.2.3