git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8029
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
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};
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;
}