From e78370e05056555e1bd2c2fb15073b89d2f291e6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Oct 2009 16:13:33 +0200 Subject: playlist_list: initialize the "playlist" variable Prevent access on uninitialized variable if the plugin list is empty. --- src/playlist_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist_list.c b/src/playlist_list.c index c9cd1304c..5fb914a2f 100644 --- a/src/playlist_list.c +++ b/src/playlist_list.c @@ -56,7 +56,7 @@ struct playlist_provider * playlist_list_open_uri(const char *uri) { char *scheme; - struct playlist_provider *playlist; + struct playlist_provider *playlist = NULL; assert(uri != NULL); -- cgit v1.2.3