gnutls: fool VLC_OBJECT() cast check for NULL objects
authorDamien Fouilleul <damienf@videolan.org>
Wed, 23 Jan 2008 14:56:46 +0000 (14:56 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 23 Jan 2008 14:56:46 +0000 (14:56 +0000)
modules/misc/gnutls.c

index 7de692a..934e2e6 100644 (file)
@@ -115,7 +115,7 @@ static int gcry_vlc_mutex_init( void **p_sys )
     if( p_lock == NULL)
         return ENOMEM;
 
     if( p_lock == NULL)
         return ENOMEM;
 
-    i_val = vlc_mutex_init( NULL, p_lock );
+    i_val = vlc_mutex_init( (vlc_object_t *)NULL, p_lock );
     if( i_val )
         free( p_lock );
     else
     if( i_val )
         free( p_lock );
     else