[vlc-commits] fix calloc usage.

Rémi Duraffort git at videolan.org
Wed Jul 13 11:10:52 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 11 14:45:17 2011 +0200| [1c357337e4909d22b426b12a1c9a0d7d41166aae] | committer: Rémi Duraffort

fix calloc usage.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c357337e4909d22b426b12a1c9a0d7d41166aae
---

 src/input/item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index fe37d92..4a4eab9 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -810,7 +810,7 @@ input_item_NewWithType( const char *psz_uri, const char *psz_name,
 {
     static vlc_atomic_t last_input_id = VLC_ATOMIC_INIT(0);
 
-    input_item_t* p_input = calloc( sizeof( *p_input ), 1 );
+    input_item_t* p_input = calloc( 1, sizeof( *p_input ) );
     if( !p_input )
         return NULL;
     vlc_event_manager_t * p_em = &p_input->event_manager;



More information about the vlc-commits mailing list