]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1294431: make sure not to check uninitialized value
authorMichael Jerris <mike@jerris.com>
Wed, 22 Apr 2015 15:23:00 +0000 (10:23 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:24 +0000 (12:47 -0500)
src/switch_core_media.c

index 068151bd71a4d2d8b5e14a71d2743f5931b3357b..c8b89224b49d760013fdb1c9f5eabfc03f3aeaec 100644 (file)
@@ -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 };