aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authordiruggles <diruggles@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-03 14:09:29 +0000
committerdiruggles <diruggles@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-03 14:09:29 +0000
commit61e542221001708110051fc7e3f02b9d7874a66d (patch)
tree0e2e9eea540bdd9ceacfc69a37a2b22e909df011 /apps
parentb86cf26452958dbff2c195ecd2e00bbcaa7e590a (diff)
initialize playing_silence in struct initialization
playing_silence was not initialized with the struct was initialized, it was being set after the fact which caused problems if something that relied on playing_silence being set was called too quickly (closes issue #18430) Reported by: stevebrandli Patches: externalivr.patch uploaded by thedavidfactor (license 903) Tested by: thedavidfactor, stevebrandli git-svn-id: http://svn.digium.com/svn/asterisk/trunk@300121 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_externalivr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index 919815d73..b0b2254d4 100644
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -401,6 +401,7 @@ static int app_exec(struct ast_channel *chan, const char *data)
.playlist = AST_LIST_HEAD_INIT_VALUE,
.finishlist = AST_LIST_HEAD_INIT_VALUE,
.gen_active = 0,
+ .playing_silence = 1,
};
struct ivr_localuser *u = &foo;