=== modified file 'src/audacious/playlist.c' --- src/audacious/playlist.c 2009-01-11 05:55:36 +0000 +++ src/audacious/playlist.c 2009-01-11 06:26:24 +0000 @@ -1531,6 +1531,9 @@ gint playlist_get_length(Playlist *playlist) { + if (playlist == NULL) + return NULL; + return g_list_length(playlist->entries); }