From 73609f04783140aeb63796bf5c0bf34e2274da34 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 4 Jan 2007 01:18:06 +0000 Subject: [PATCH] fix uninit ints git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3904 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 0c7c129c7b..08b47aa8b4 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -3034,8 +3034,8 @@ switch_status_t conf_api_dispatch(conference_obj_t *conference, switch_stream_ha case CONF_API_SUB_MEMBER_TARGET: { uint32_t id = 0; - int all; - int last; + uint8_t all = 0; + uint8_t last = 0; if (argv[argn+1]) { if (!(id = atoi(argv[argn+1]))) { @@ -3160,6 +3160,7 @@ static switch_status_t conf_api_main(char *buf, switch_core_session_t *session, if ((conference = (conference_obj_t *) switch_core_hash_find(globals.conference_hash, argv[0]))) { if (switch_thread_rwlock_tryrdlock(conference->rwlock) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Read Lock Fail\n"); + goto done; } if (argc >= 2) { @@ -3185,7 +3186,8 @@ static switch_status_t conf_api_main(char *buf, switch_core_session_t *session, } else { stream->write_function(stream, "No parameters specified.\nTry 'help conference'\n"); } - + + done: switch_safe_free(lbuf); return status;