diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-06 15:18:22 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-06 15:18:22 +0000 |
commit | 79b986ff37df94450fbbb573df036286e66988ee (patch) | |
tree | 467f95368147fe39ff3a361d8c961667a541b47f /apps | |
parent | f257c6e5f301b1f1bb2f2c0237f307c346f0ad8c (diff) |
Resolve a crash due to an ast_frame not being fully initialized.
(closes issue #16531)
Reported by: john8675309
(closes SWP-615)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@238009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_mp3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_mp3.c b/apps/app_mp3.c index 1f550a1dd..710299af6 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; |