mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-21 20:40:10 +00:00
Merged revisions 238009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r238009 | russell | 2010-01-06 09:18:22 -0600 (Wed, 06 Jan 2010) | 7 lines 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/trunk@238010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -145,7 +145,9 @@ static int mp3_exec(struct ast_channel *chan, const char *data)
|
|||||||
struct ast_frame f;
|
struct ast_frame f;
|
||||||
char offset[AST_FRIENDLY_OFFSET];
|
char offset[AST_FRIENDLY_OFFSET];
|
||||||
short frdata[160];
|
short frdata[160];
|
||||||
} myf;
|
} myf = {
|
||||||
|
.f = { 0, },
|
||||||
|
};
|
||||||
|
|
||||||
if (ast_strlen_zero(data)) {
|
if (ast_strlen_zero(data)) {
|
||||||
ast_log(LOG_WARNING, "MP3 Playback requires an argument (filename)\n");
|
ast_log(LOG_WARNING, "MP3 Playback requires an argument (filename)\n");
|
||||||
|
Reference in New Issue
Block a user