[vlc-devel] commit: calloc usage. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Feb 16 16:06:40 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Feb 16 16:05:26 2009 +0100| [1791475618d2b251c3f9325fbaf1a54ec508886a] | committer: Rémi Duraffort
calloc usage.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1791475618d2b251c3f9325fbaf1a54ec508886a
---
modules/access/zip/zipaccess.c | 2 +-
modules/access/zip/zipstream.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/zip/zipaccess.c b/modules/access/zip/zipaccess.c
index d60f3dc..3689e12 100644
--- a/modules/access/zip/zipaccess.c
+++ b/modules/access/zip/zipaccess.c
@@ -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;
diff --git a/modules/access/zip/zipstream.c b/modules/access/zip/zipstream.c
index 663483a..9616f3e 100644
--- a/modules/access/zip/zipstream.c
+++ b/modules/access/zip/zipstream.c
@@ -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;
More information about the vlc-devel
mailing list