playlist_list: initialize the "playlist" variable

Prevent access on uninitialized variable if the plugin list is empty.
This commit is contained in:
Max Kellermann 2009-10-13 16:13:33 +02:00
parent ea616b3ed4
commit e78370e050

View File

@ -56,7 +56,7 @@ struct playlist_provider *
playlist_list_open_uri(const char *uri) playlist_list_open_uri(const char *uri)
{ {
char *scheme; char *scheme;
struct playlist_provider *playlist; struct playlist_provider *playlist = NULL;
assert(uri != NULL); assert(uri != NULL);