[asterisk-commits] russell: branch 1.4 r238009 - /branches/1.4/apps/app_mp3.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 6 09:18:29 CST 2010
Author: russell
Date: Wed Jan 6 09:18:22 2010
New Revision: 238009
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=238009
Log:
Resolve a crash due to an ast_frame not being fully initialized.
(closes issue #16531)
Reported by: john8675309
(closes SWP-615)
Modified:
branches/1.4/apps/app_mp3.c
Modified: branches/1.4/apps/app_mp3.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_mp3.c?view=diff&rev=238009&r1=238008&r2=238009
==============================================================================
--- branches/1.4/apps/app_mp3.c (original)
+++ branches/1.4/apps/app_mp3.c Wed Jan 6 09:18:22 2010
@@ -155,8 +155,10 @@
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;
More information about the asterisk-commits
mailing list