Author: mikej Date: Fri Apr 4 17:43:20 2008 New Revision: 8029 Modified: freeswitch/trunk/src/switch_ivr.c Log: tweak Modified: freeswitch/trunk/src/switch_ivr.c ============================================================================== --- freeswitch/trunk/src/switch_ivr.c (original) +++ freeswitch/trunk/src/switch_ivr.c Fri Apr 4 17:43:20 2008 @@ -572,7 +572,7 @@ } while (switch_channel_ready(channel)) { - switch_frame_t *read_frame; + switch_frame_t *read_frame = NULL; switch_event_t *event; switch_dtmf_t dtmf = {0}; @@ -617,7 +617,7 @@ break; } - if (args && (args->read_frame_callback)) { + if (read_frame && args && (args->read_frame_callback)) { if (args->read_frame_callback(session, read_frame, args->user_data) != SWITCH_STATUS_SUCCESS) { break; }
participants (1)
-
Freeswitch SVN