[Freeswitch-trunk] [commit] r3802 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Fri Dec 22 15:06:18 EST 2006


Author: anthm
Date: Fri Dec 22 15:06:17 2006
New Revision: 3802

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
cant memset

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri Dec 22 15:06:17 2006
@@ -338,7 +338,7 @@
 {
 	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 @@
 	if (!fh) {
 		fh = &lfh;
 	}
-	memset(fh, 0, sizeof(*fh));
 
 	channel = switch_core_session_get_channel(session);
     assert(channel != NULL);



More information about the Freeswitch-trunk mailing list