Merged revisions 156289 via svnmerge from
authorJeff Peeler <jpeeler@digium.com>
Wed, 12 Nov 2008 19:11:15 +0000 (19:11 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 12 Nov 2008 19:11:15 +0000 (19:11 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r156289 | jpeeler | 2008-11-12 13:10:12 -0600 (Wed, 12 Nov 2008) | 3 lines

For whatever reason, gcc only warned me about the possible use of an uninitialized variable when compiling 1.6.1.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156290 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 7b49e01..9f66162 100644 (file)
@@ -1698,7 +1698,7 @@ static void *announce_thread(void *data)
                        break;
                }
 
                        break;
                }
 
-               for (; !conf->announcethread_stop && (current = AST_LIST_REMOVE_HEAD(&local_list, entry)); ao2_ref(current, -1)) {
+               for (res = 1; !conf->announcethread_stop && (current = AST_LIST_REMOVE_HEAD(&local_list, entry)); ao2_ref(current, -1)) {
                        ast_log(LOG_DEBUG, "About to play %s\n", current->namerecloc);
                        if (!ast_fileexists(current->namerecloc, NULL, NULL))
                                continue;
                        ast_log(LOG_DEBUG, "About to play %s\n", current->namerecloc);
                        if (!ast_fileexists(current->namerecloc, NULL, NULL))
                                continue;