Fix segmentation fault
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 30 Sep 2007 16:58:33 +0000 (16:58 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 30 Sep 2007 16:58:33 +0000 (16:58 +0000)
src/misc/variables.c

index 1b0d10e..9d95eec 100644 (file)
@@ -846,7 +846,7 @@ vlc_mutex_t *var_AcquireMutex( const char *name )
         return NULL;
 
     var_Get( p_global, name, &val );
-    vlc_mutex_lock( &val.p_address );
+    vlc_mutex_lock( val.p_address );
     return val.p_address;
 }