From aae9da6464f8d7a944be2ad7e31afe6fa840cef5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 22 Dec 2006 20:06:17 +0000 Subject: [PATCH] cant memset git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3802 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index a919c35d89..23ea16bd1d 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -338,7 +338,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se { switch_channel_t *channel; char dtmf[128]; - switch_file_handle_t lfh; + switch_file_handle_t lfh = {0}; switch_frame_t *read_frame; switch_codec_t codec, *read_codec; char *codec_name; @@ -350,7 +350,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se if (!fh) { fh = &lfh; } - memset(fh, 0, sizeof(*fh)); channel = switch_core_session_get_channel(session); assert(channel != NULL);