]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Resolve a crash due to an ast_frame not being fully initialized.
authorRussell Bryant <russell@russellbryant.com>
Wed, 6 Jan 2010 15:18:22 +0000 (15:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 6 Jan 2010 15:18:22 +0000 (15:18 +0000)
(closes issue #16531)
Reported by: john8675309

(closes SWP-615)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@238009 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mp3.c

index 1f550a1ddde7a7f277aecb9ecadb454171b681a9..710299af69c335e1e1339080bb731d42c7bd6e5f 100644 (file)
@@ -155,8 +155,10 @@ static int mp3_exec(struct ast_channel *chan, void *data)
                struct ast_frame f;
                char offset[AST_FRIENDLY_OFFSET];
                short frdata[160];
-       } myf;
-       
+       } myf = {
+               .f = { 0, },
+       };
+
        if (ast_strlen_zero(data)) {
                ast_log(LOG_WARNING, "MP3 Playback requires an argument (filename)\n");
                return -1;