Commit 17914756 authored by Rémi Duraffort's avatar Rémi Duraffort

calloc usage.

parent e49255cb
......@@ -67,7 +67,7 @@ int AccessOpen( vlc_object_t *p_this )
char *psz_pathToZip = NULL, *psz_path = NULL, *psz_sep = NULL;
p_access->p_sys = p_sys = (access_sys_t*)
calloc( sizeof( access_sys_t ), 1 );
calloc( 1, sizeof( access_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
......
......@@ -178,7 +178,7 @@ int StreamOpen( vlc_object_t *p_this )
if( memcmp( p_peek, p_zip_marker, i_zip_marker ) )
return VLC_EGENERIC;
s->p_sys = p_sys = calloc( sizeof( *p_sys ), 1 );
s->p_sys = p_sys = calloc( 1, sizeof( *p_sys ) );
if( !p_sys )
return VLC_ENOMEM;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment