]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixed an issue where chanspy flags were uninitialized if no options were passed.
authorMark Michelson <mmichelson@digium.com>
Fri, 13 Jul 2007 20:10:39 +0000 (20:10 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 13 Jul 2007 20:10:39 +0000 (20:10 +0000)
What triggered this investigation was an IRC chat where some people's quiet flags were
set while others' weren't even though none of them had specified the q option.

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

apps/app_chanspy.c

index 7510c68e94ea42ea6a633532538eaf043ade1083..34db4f7befcd9f68012b93edc0f917f3ec62076a 100644 (file)
@@ -432,6 +432,8 @@ static int chanspy_exec(struct ast_channel *chan, void *data)
                                volfactor = vol;
                        }
        }
+       else 
+               ast_clear_flag(&flags, AST_FLAGS_ALL);
 
        if (recbase) {
                char filename[512];