From: Anthony Minessale Date: Fri, 22 Dec 2006 20:06:17 +0000 (+0000) Subject: cant memset X-Git-Tag: v1.0-beta1~1459 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae9da6464f8d7a944be2ad7e31afe6fa840cef5;p=thirdparty%2Ffreeswitch.git cant memset git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3802 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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);