[asterisk-commits] diruggles: trunk r300121 - /trunk/apps/app_externalivr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 3 14:09:32 UTC 2011


Author: diruggles
Date: Mon Jan  3 08:09:29 2011
New Revision: 300121

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=300121
Log:
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

Modified:
    trunk/apps/app_externalivr.c

Modified: trunk/apps/app_externalivr.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_externalivr.c?view=diff&rev=300121&r1=300120&r2=300121
==============================================================================
--- trunk/apps/app_externalivr.c (original)
+++ trunk/apps/app_externalivr.c Mon Jan  3 08:09:29 2011
@@ -401,6 +401,7 @@
 		.playlist = AST_LIST_HEAD_INIT_VALUE,
 		.finishlist = AST_LIST_HEAD_INIT_VALUE,
 		.gen_active = 0,
+		.playing_silence = 1,
 	};
 	struct ivr_localuser *u = &foo;
 




More information about the asterisk-commits mailing list