[Freeswitch-svn] [commit] r3904 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN anthm at freeswitch.org
Wed Jan 3 20:18:06 EST 2007


Author: anthm
Date: Wed Jan  3 20:18:06 2007
New Revision: 3904

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
fix uninit ints

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Wed Jan  3 20:18:06 2007
@@ -3034,8 +3034,8 @@
             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 @@
         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 @@
     } else {
         stream->write_function(stream, "No parameters specified.\nTry 'help conference'\n");
     }
-    
+
+ done:
     switch_safe_free(lbuf);
 
     return status;



More information about the Freeswitch-svn mailing list