]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Kevin has informed me that thi sort of thing is not necessary.
authorMark Michelson <mmichelson@digium.com>
Sat, 2 May 2009 10:45:24 +0000 (10:45 +0000)
committerMark Michelson <mmichelson@digium.com>
Sat, 2 May 2009 10:45:24 +0000 (10:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@191629 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_chanspy.c

index c4c3718cd921b4c643ef0c8108cc63f5a352d8f7..18e4972a5e1a5d72e31679a7b8784348a225178c 100644 (file)
@@ -508,8 +508,6 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
        char nameprefix[AST_NAME_STRLEN];
        char peer_name[AST_NAME_STRLEN + 5];
        signed char zero_volume = 0;
-       char *groups[25];
-       char dup_group[512];
        int waitms;
        int res;
        char *ptr;
@@ -559,7 +557,9 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
                                next_channel(chan, prev, spec, exten, context, &chanspy_ds), next_chanspy_ds = NULL) {
                        const char *group;
                        int igrp = !mygroup;
+                       char *groups[25];
                        int num_groups = 0;
+                       char dup_group[512];
                        int x;
                        char *s;