Merged revisions 77785 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Mon, 30 Jul 2007 18:56:29 +0000 (18:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 30 Jul 2007 18:56:29 +0000 (18:56 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77785 | russell | 2007-07-30 13:55:15 -0500 (Mon, 30 Jul 2007) | 3 lines

file and I both committed changes for issue #10301.  Remove a duplicated
assignment to restore the original value of the previous channel.

........

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

main/channel.c

index e1595bd..d49344a 100644 (file)
@@ -931,7 +931,7 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev,
        struct ast_channel *c;
        const struct ast_channel *_prev = prev;
 
-       for (retries = 0; retries < 10; retries++, prev = _prev) {
+       for (retries = 0; retries < 10; retries++) {
                int done;
                AST_RWLIST_RDLOCK(&channels);
                AST_RWLIST_TRAVERSE(&channels, c, chan_list) {