aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-13 20:10:39 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-13 20:10:39 +0000
commitf5681b35a9c844130f9bcf00c3eaec99710cbbc1 (patch)
treec295e2c8b42be75da4c1103965839e3bc81cc150
parent4f92fbf747b6ee8a7f880671195793963c9bc9cd (diff)
Fixed an issue where chanspy flags were uninitialized if no options were passed.
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: http://svn.digium.com/svn/asterisk/branches/1.2@75066 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_chanspy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 7510c68e9..34db4f7be 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -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];