mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
Fix compilation error on certain versions of GCC.
........ Merged revisions 421447 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@421448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1336,9 +1336,10 @@ int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc,
|
|||||||
control = NULL;
|
control = NULL;
|
||||||
|
|
||||||
if (!ast_check_hangup_locked(chan) && !ast_channel_pbx(chan)) {
|
if (!ast_check_hangup_locked(chan) && !ast_channel_pbx(chan)) {
|
||||||
struct ast_pbx_args pbx_args = {
|
struct ast_pbx_args pbx_args;
|
||||||
.no_hangup_chan = 1,
|
|
||||||
};
|
memset(&pbx_args, 0, sizeof(pbx_args));
|
||||||
|
pbx_args.no_hangup_chan = 1;
|
||||||
|
|
||||||
res = ast_pbx_run_args(chan, &pbx_args);
|
res = ast_pbx_run_args(chan, &pbx_args);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user