From 7409f414f5f7a5050183f1f9053e12db207f54f5 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 16 Nov 2006 18:48:53 +0000 Subject: [PATCH] logic fix on rtp_common_read on a not ready session, init bytes to 0 so the checks outside of the while loop work. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3386 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 1b07702915..26331ca99e 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -757,7 +757,7 @@ static void do_2833(switch_rtp_t *rtp_session) static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_type, switch_frame_flag_t *flags) { - switch_size_t bytes; + switch_size_t bytes = 0; switch_status_t status; uint8_t check = 1;