Fix incorrect variable (bug #4243)
authorMark Spencer <markster@digium.com>
Sat, 14 May 2005 23:45:22 +0000 (23:45 +0000)
committerMark Spencer <markster@digium.com>
Sat, 14 May 2005 23:45:22 +0000 (23:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5653 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_features.c

index 1e92d7e..6a852bc 100755 (executable)
@@ -459,7 +459,7 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in
                for (y=0;y<3;y++) {
                        if (y == index)
                                continue;
-                       if (p->subs[x].owner && !strcasecmp(p->subs[x].owner->name, tmp->name))
+                       if (p->subs[y].owner && !strcasecmp(p->subs[y].owner->name, tmp->name))
                                break;
                }
                if (y >= 3)