From: Russell Bryant Date: Wed, 6 Jan 2010 15:18:22 +0000 (+0000) Subject: Resolve a crash due to an ast_frame not being fully initialized. X-Git-Tag: 1.4.29-rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8cf7e6003e30074926052d5d65cc5f9dd167898;p=thirdparty%2Fasterisk.git Resolve a crash due to an ast_frame not being fully initialized. (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 --- diff --git a/apps/app_mp3.c b/apps/app_mp3.c index 1f550a1ddd..710299af69 100644 --- a/apps/app_mp3.c +++ b/apps/app_mp3.c @@ -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;