From: Mark Michelson Date: Fri, 13 Jul 2007 20:10:39 +0000 (+0000) Subject: Fixed an issue where chanspy flags were uninitialized if no options were passed. X-Git-Tag: 1.2.22~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8d37451476a30dd7a362d5ea23aed32caeb5167;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@75066 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 7510c68e94..34db4f7bef 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];