[MPlayer-cvslog] r33961 - trunk/gui/ui/gtk/playlist.c

ib subversion at mplayerhq.hu
Tue Aug 9 23:32:10 CEST 2011


Author: ib
Date: Tue Aug  9 23:32:09 2011
New Revision: 33961

Log:
Check directory history entry prior to its usage.

This fixes a segmentation fault with the playlist menu.

Modified:
   trunk/gui/ui/gtk/playlist.c

Modified: trunk/gui/ui/gtk/playlist.c
==============================================================================
--- trunk/gui/ui/gtk/playlist.c	Tue Aug  9 22:14:30 2011	(r33960)
+++ trunk/gui/ui/gtk/playlist.c	Tue Aug  9 23:32:09 2011	(r33961)
@@ -489,7 +489,7 @@ GtkWidget * create_PlayList( void )
   gtk_ctree_expand( GTK_CTREE( CTDirTree ),parent );
   gtk_widget_show( CTDirTree );
 
-  old_path = g_filename_from_utf8( fsHistory[0], -1, NULL, NULL, NULL );
+  if ( fsHistory[0] ) old_path = g_filename_from_utf8( fsHistory[0], -1, NULL, NULL, NULL );
 
   gtk_clist_set_column_widget( GTK_CLIST( CTDirTree ),0,
     AddLabel( MSGTR_PLAYLIST_DirectoryTree,NULL ) );


More information about the MPlayer-cvslog mailing list