[asterisk-commits] mmichelson: branch 13 r421448 - in /branches/13: ./ res/res_stasis.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 19 14:55:09 CDT 2014


Author: mmichelson
Date: Tue Aug 19 14:55:06 2014
New Revision: 421448

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421448
Log:
Fix compilation error on certain versions of GCC.
........

Merged revisions 421447 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    branches/13/   (props changed)
    branches/13/res/res_stasis.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: branches/13/res/res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_stasis.c?view=diff&rev=421448&r1=421447&r2=421448
==============================================================================
--- branches/13/res/res_stasis.c (original)
+++ branches/13/res/res_stasis.c Tue Aug 19 14:55:06 2014
@@ -1336,9 +1336,10 @@
 	control = NULL;
 
 	if (!ast_check_hangup_locked(chan) && !ast_channel_pbx(chan)) {
-		struct ast_pbx_args pbx_args = {
-			.no_hangup_chan = 1,
-		};
+		struct ast_pbx_args pbx_args;
+
+		memset(&pbx_args, 0, sizeof(pbx_args));
+		pbx_args.no_hangup_chan = 1;
 
 		res = ast_pbx_run_args(chan, &pbx_args);
 	}




More information about the asterisk-commits mailing list