diff options
author | Mark Michelson <mmichelson@digium.com> | 2014-08-19 19:55:56 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2014-08-19 19:55:56 +0000 |
commit | 28a89e76850280cfadff267beed025b7273ed8e0 (patch) | |
tree | d3c69389cea31afdab95cc00b03d71fefeaa2bbc /res | |
parent | a85a483fcd82a3dd5ca17dc339309aa55a0c4ad4 (diff) |
Fix compilation error on certain versions of GCC.
........
Merged revisions 421447 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 421448 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@421449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r-- | res/res_stasis.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/res/res_stasis.c b/res/res_stasis.c index b03da0169..7e7904cae 100644 --- a/res/res_stasis.c +++ b/res/res_stasis.c @@ -1336,9 +1336,10 @@ int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc, 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); } |