Index: audacious/playlist_container.c
===================================================================
--- audacious/playlist_container.c	(revision 2140)
+++ audacious/playlist_container.c	(working copy)
@@ -44,7 +44,9 @@
 	GList *node;
 	PlaylistContainer *plc;
 
-	g_return_val_if_fail(ext != NULL, NULL);
+	/* check that ext isn't NULL and that strrchr() didn't return NULL
+	 * (nenolod's optimization ;-) */
+	g_return_val_if_fail(ext != NULL || ext-1 != NULL, NULL);
 
 	for (node = registered_plcs; node != NULL; node = g_list_next(node)) {
 		plc = PLAYLIST_CONTAINER(node->data);

