]> git.sesse.net Git - vlc/commitdiff
fix calloc usage.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 11 Jul 2011 12:45:17 +0000 (14:45 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 13 Jul 2011 08:48:03 +0000 (10:48 +0200)
src/input/item.c

index fe37d92fa73bd9ad097a65b3debc0484e5d66d53..4a4eab99ed5bfa99b49d2e9e214c318bb2283684 100644 (file)
@@ -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;