]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
cant memset
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 22 Dec 2006 20:06:17 +0000 (20:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 22 Dec 2006 20:06:17 +0000 (20:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3802 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index a919c35d89c886aa373fe933d1b1c99b7d1374cf..23ea16bd1de5dbe4bc8add7fe8da478ec73077e1 100644 (file)
@@ -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);