aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-13 16:13:33 +0200
committerMax Kellermann <max@duempel.org>2009-10-13 16:13:33 +0200
commite78370e05056555e1bd2c2fb15073b89d2f291e6 (patch)
tree1011718748324df0f104a02259031633a7fcbfe8
parentea616b3ed4c1e94f29ac32bcd7751943e2d647a0 (diff)
downloadmpd-e78370e05056555e1bd2c2fb15073b89d2f291e6.tar.gz
mpd-e78370e05056555e1bd2c2fb15073b89d2f291e6.tar.xz
mpd-e78370e05056555e1bd2c2fb15073b89d2f291e6.zip
playlist_list: initialize the "playlist" variable
Prevent access on uninitialized variable if the plugin list is empty.
-rw-r--r--src/playlist_list.c2
1 files changed, 1 insertions, 1 deletions
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);