From: Michael Jerris Date: Thu, 16 Nov 2006 18:48:53 +0000 (+0000) Subject: logic fix on rtp_common_read on a not ready session, init bytes to 0 so the checks... X-Git-Tag: v1.0-beta1~1732 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7409f414f5f7a5050183f1f9053e12db207f54f5;p=thirdparty%2Ffreeswitch.git 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 --- 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;