# HG changeset patch # User ib # Date 1312925529 0 # Node ID 983ffb8be5bdd26288e0d23ea6e973a398711270 # Parent d7bc4bcc352353f86bca84bc3685a7fe710c3480 Check directory history entry prior to its usage. This fixes a segmentation fault with the playlist menu. diff -r d7bc4bcc3523 -r 983ffb8be5bd gui/ui/gtk/playlist.c --- a/gui/ui/gtk/playlist.c Tue Aug 09 20:14:30 2011 +0000 +++ b/gui/ui/gtk/playlist.c Tue Aug 09 21:32:09 2011 +0000 @@ -489,7 +489,7 @@ 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 ) );