From 421a06ce6a7a15cf1df8e618fcbd74521a286138 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sat, 21 Nov 2009 05:58:25 +0000 Subject: [PATCH] code before decl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15593 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 8720e39bbc..e54b9f7325 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -332,8 +332,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi if (session->bugs && !switch_channel_test_flag(session->channel, CF_PAUSE_BUGS)) { switch_media_bug_t *bp; switch_bool_t ok = SWITCH_TRUE; - switch_thread_rwlock_rdlock(session->bug_rwlock); int prune = 0; + switch_thread_rwlock_rdlock(session->bug_rwlock); for (bp = session->bugs; bp; bp = bp->next) { if (!switch_channel_test_flag(session->channel, CF_ANSWERED) && switch_core_media_bug_test_flag(bp, SMBF_ANSWER_REQ)) {