From: David Ruggles Date: Mon, 3 Jan 2011 14:09:29 +0000 (+0000) Subject: initialize playing_silence in struct initialization X-Git-Tag: 11.0.0-beta1~2021 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d14fe577a9196a5f6a4a0aeea4b32a994f999d;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@300121 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 919815d730..b0b2254d48 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;