summaryrefslogtreecommitdiffstats
path: root/libmpdemux/mf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/mf.c')
-rw-r--r--libmpdemux/mf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/mf.c b/libmpdemux/mf.c
index f138710b28..2c05ea0e35 100644
--- a/libmpdemux/mf.c
+++ b/libmpdemux/mf.c
@@ -106,7 +106,7 @@ mf_t* open_mf(char * filename){
{ free( mf ); free( fname ); return NULL; }
mf->nr_of_files=gg.gl_pathc;
- mf->names=malloc( gg.gl_pathc * sizeof( char* ) );
+ mf->names=calloc( gg.gl_pathc, sizeof( char* ) );
mp_msg( MSGT_STREAM,MSGL_INFO,"[mf] number of files: %d (%d)\n",mf->nr_of_files, gg.gl_pathc * sizeof( char* ) );