From 6dcff0a79afc3a151698df4b3ced159efa7f5cff Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 22 Apr 2015 10:23:00 -0500 Subject: [PATCH] CID:1294431: make sure not to check uninitialized value --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 068151bd71..c8b89224b4 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -4757,7 +4757,7 @@ static void *SWITCH_THREAD_FUNC video_helper_thread(switch_thread_t *thread, voi switch_core_session_t *session = mh->session; switch_channel_t *channel = switch_core_session_get_channel(session); switch_status_t status; - switch_frame_t *read_frame; + switch_frame_t *read_frame = NULL; switch_media_handle_t *smh; uint32_t loops = 0, xloops = 0, vloops = 0; switch_frame_t fr = { 0 };