]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix compilation error on certain versions of GCC.
authorMark Michelson <mmichelson@digium.com>
Tue, 19 Aug 2014 19:54:09 +0000 (19:54 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 19 Aug 2014 19:54:09 +0000 (19:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@421447 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_stasis.c

index 23bb93836e7a3dc97107833f6b84d495dfa54eef..3d9a66b8629cdafaa764ffe03d1f47969030f9f5 100644 (file)
@@ -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);
        }