Commit e78370e0 authored by Max Kellermann's avatar Max Kellermann

playlist_list: initialize the "playlist" variable

Prevent access on uninitialized variable if the plugin list is empty.
parent ea616b3e
...@@ -56,7 +56,7 @@ struct playlist_provider * ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment