]> git.sesse.net Git - vlc/commitdiff
interaction.c: Don't crash in certain condition
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 28 Jan 2006 13:30:33 +0000 (13:30 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 28 Jan 2006 13:30:33 +0000 (13:30 +0000)
src/interface/interaction.c

index 90c4dcf9d4f236c47dfebcc6f475b8e5652feb74..ff62afc7680addb456a92582ace3594842fa90f4 100644 (file)
@@ -609,6 +609,7 @@ static int intf_Send( interaction_t *p_interact,
 {
     int i;
     vlc_bool_t b_found = VLC_FALSE;
+    if( p_interact == NULL ) return VLC_ENOOBJ;
     vlc_mutex_lock( &p_interact->object_lock );
 
     for( i = 0 ; i< p_interact->i_dialogs; i++ )