diff --git a/src/playlist/PlaylistRegistry.cxx b/src/playlist/PlaylistRegistry.cxx index ce34b1136..e90ea8d72 100644 --- a/src/playlist/PlaylistRegistry.cxx +++ b/src/playlist/PlaylistRegistry.cxx @@ -165,12 +165,10 @@ playlist_list_open_uri(const char *uri, Mutex &mutex) { /** this array tracks which plugins have already been tried by playlist_list_open_uri_scheme() */ - bool tried[n_playlist_plugins]; + bool tried[n_playlist_plugins]{}; assert(uri != nullptr); - memset(tried, false, sizeof(tried)); - auto playlist = playlist_list_open_uri_scheme(uri, mutex, tried); if (playlist == nullptr) playlist = playlist_list_open_uri_suffix(uri, mutex,